Field based on a OneRelationshipDefinition, represented as the node in GraphQL

Parameters

relationshipDefinition

contained OneRelationshipDefinition which defines what subquery to build

Constructors

Link copied to clipboard
constructor(relationshipDefinition: OneRelationshipDefinition)

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<*, *>?

Functions

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

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