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

Constructors

Link copied to clipboard
constructor(relationshipDefinition: T)

Properties

Link copied to clipboard

Description of the property

Link copied to clipboard
open override val graphQLName: String

The name of the field in the GraphQL schema

Link copied to clipboard

If true, this exposes a field in the GraphQL API

Link copied to clipboard
val property: KProperty1<*, *>?
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun createGraphQLResult(result: Any?, lazyLoadingContext: LazyLoadingContext): Any?

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