class OneRelationshipFieldDefinition(relationshipDefinition: OneRelationshipDefinition) : RelationshipFieldDefinition<OneRelationshipDefinition>
Field based on a OneRelationshipDefinition, represented as the node in GraphQL
Parameters
relationshipDefinition
contained OneRelationshipDefinition which defines what subquery to build
Properties
Functions
Link copied to clipboard
Creates the field result for a graphql query
Link copied to clipboard
open override 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 open override fun generateFieldDefinition(transformationContext: SchemaTransformationContext): GraphQLFieldDefinition?
Generates a field definition