abstract class RelationshipFieldDefinition<T : RelationshipDefinition>(val relationshipDefinition: T) : FieldDefinition
Base class for OneRelationshipFieldDefinition and ManyRelationshipFieldDefinition
Parameters
relationshipDefinition
contained T which defines what subquery to build
Type Parameters
T
the type of the contained RelationshipDefinition
Inheritors
Properties
Functions
Link copied to clipboard
Creates the field result for a graphql query
Link copied to clipboard
abstract fun createQueryEntry(dfe: DataFetchingEnvironment, context: FieldFetchingContext, nodeQueryParser: NodeQueryParser, onlyOnTypes: List<NodeDefinition>?): NodeQueryEntry<*>
Creates the query part entry which can be used to fetch this field
Link copied to clipboard
internal abstract fun generateFieldDefinition(transformationContext: SchemaTransformationContext): GraphQLFieldDefinition?
Generates a field definition