abstract class ExtensionFieldDefinition(val field: GraphQLFieldDefinition, val cost: Int = 0) : FieldDefinition
Definition of an extension field on a Node
Parameters
field
the field definition in the GraphQL schema
cost
the cost of this field, defaults to 0
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
abstract fun generateFetcher(dfe: DataFetchingEnvironment, arguments: Map<String, Any?>, node: Node, nodeDefinition: NodeDefinition): Expression
Generates the Cypher expression used to fetch the field
Link copied to clipboard
internal open override fun generateFieldDefinition(transformationContext: SchemaTransformationContext): GraphQLFieldDefinition?
Generates a field definition
Link copied to clipboard
Transforms the result fetched from the database to the result returned via the GraphQL API By default, this is the identity function