Types

Link copied to clipboard

Configuration for the connections Specifies filter factories and filter definitions used in Node classes. Defines filter factories for String, Int, Float and ID scalar properties (including nullable) and for properties backed by NodePropertyDelegate and NodeSetPropertyDelegate

Functions

Link copied to clipboard
fun generateConnectionFieldDefinition(nodeType: KClass<out Node>, name: String, description: String?, transformer: SchemaTransformationContext): GraphQLFieldDefinition

Generates the GraphQL connection field

Link copied to clipboard
private fun generateConnectionGraphQLType(nodeName: String, transformer: SchemaTransformationContext): GraphQLOutputType

Generates the connection type for a specific Node type As specified by the connection specification, has a nodes, edges, totalCount and pageInfo field

Link copied to clipboard
private fun generateEdgeGraphQLType(nodeName: String, transformer: SchemaTransformationContext): GraphQLOutputType

Generates the edge type for the edges field of the connection. The generated type has a node field, which returns the Node associated with the edge, and the cursor field, which allows getting nodes after / before the edge

Link copied to clipboard
private fun generateOrderGraphQLType(nodeName: String, orders: Map<String, OrderPart<*>>, transformer: SchemaTransformationContext): GraphQLInputType

Generates the order type with a direction and an field field, where field is of the specific enum for the Node type

Link copied to clipboard
private fun generateOrderPartGraphQLType(nodeName: String, orders: Map<String, OrderPart<*>>, transformer: SchemaTransformationContext): GraphQLInputType

Generates the enum which defines all possible order fields

Link copied to clipboard
fun generateSearchFieldDefinition(nodeType: KClass<out Node>, name: String, description: String?, transformer: SchemaTransformationContext): GraphQLFieldDefinition

Generates the GraphQL search field