-
- All Implemented Interfaces:
-
graphql.schema.DataFetcher
public abstract class BaseRelationHandler extends BaseDataFetcherForContainer
This is a base class for all handler acting on relations / edges
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBaseRelationHandler.RelatedFieldpublic abstract classBaseRelationHandler.BaseRelationFactory
-
Field Summary
Fields Modifier and Type Field Description private RelationshipInfo<GraphQLFieldsContainer>relationprivate BaseRelationHandler.RelatedFieldstartIdprivate BaseRelationHandler.RelatedFieldendIdprivate GraphQLFieldsContainertypeprivate final Map<String, Function1<Object, List<BaseDataFetcherForContainer.PropertyAccessor>>>propertyFieldsprivate final Map<String, Object>defaultFields
-
Constructor Summary
Constructors Constructor Description BaseRelationHandler(String prefix, SchemaConfig schemaConfig)
-
Method Summary
Modifier and Type Method Description final RelationshipInfo<GraphQLFieldsContainer>getRelation()final UnitsetRelation(RelationshipInfo<GraphQLFieldsContainer> relation)final BaseRelationHandler.RelatedFieldgetStartId()final UnitsetStartId(BaseRelationHandler.RelatedField startId)final BaseRelationHandler.RelatedFieldgetEndId()final UnitsetEndId(BaseRelationHandler.RelatedField endId)final Pair<Node, Condition>getRelationSelect(Boolean start, Map<String, Argument> arguments)-
Methods inherited from class org.neo4j.graphql.handler.BaseDataFetcherForContainer
getDefaultFields, getPropertyFields, getType, setType -
Methods inherited from class org.neo4j.graphql.handler.BaseDataFetcher
get -
Methods inherited from class org.neo4j.graphql.handler.projection.ProjectionBase
cypherDirective, filterFieldName, projectFields, skipLimitOrder, where -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BaseRelationHandler
BaseRelationHandler(String prefix, SchemaConfig schemaConfig)
-
-
Method Detail
-
getRelation
final RelationshipInfo<GraphQLFieldsContainer> getRelation()
-
setRelation
final Unit setRelation(RelationshipInfo<GraphQLFieldsContainer> relation)
-
getStartId
final BaseRelationHandler.RelatedField getStartId()
-
setStartId
final Unit setStartId(BaseRelationHandler.RelatedField startId)
-
getEndId
final BaseRelationHandler.RelatedField getEndId()
-
setEndId
final Unit setEndId(BaseRelationHandler.RelatedField endId)
-
getRelationSelect
final Pair<Node, Condition> getRelationSelect(Boolean start, Map<String, Argument> arguments)
-
-
-
-