abstract class FieldDefinition(val property: KProperty1<*, *>?)

Definition of a field on the node

Parameters

property

optional property for cache initialization

Inheritors

Constructors

Link copied to clipboard
constructor(property: KProperty1<*, *>?)

Properties

Link copied to clipboard
abstract val graphQLName: String

The name of the field in the GraphQL schema

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

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