class AggregatedRelationshipFieldDefinition(val graphQLName: String, val description: String, val properties: List<PropertyWithOwner>) : FieldDefinition

Parameters

graphQLName

the name of the GraphQL field

description

the description of the GraphQL field

properties

properties defining the aggregation path

Constructors

Link copied to clipboard
constructor(graphQLName: String, description: String, properties: List<PropertyWithOwner>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val graphQLName: String
Link copied to clipboard
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

Link copied to clipboard

Gets the RelationshipDefinition that properties represent. Caches the result