class NodeSubFilterDefinition(name: String, description: String, nodeType: KType, val subFilterGenerator: SubFilterGenerator, val relationshipDefinition: RelationshipDefinition) : FilterEntryDefinition

FilterEntryDefinition wrapper for a FilterDefinition. Automatically generates the FilterDefinition base on the provided nodeType. GraphQL type and parsing is handled by the generated FilterDefinition Used in for filter entries based on NodeRelationship based properties.

Parameters

name

the name of the field on the GraphQLInputObjectType

description

the description of the field

nodeType

defines which FilterDefinition to generate

subFilterGenerator

used to generate the FilterDefinition

relationshipDefinition

defines the relationship of the property

Constructors

Link copied to clipboard
constructor(name: String, description: String, nodeType: KType, subFilterGenerator: SubFilterGenerator, relationshipDefinition: RelationshipDefinition)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val subFilter: FilterDefinition<out Node>
Link copied to clipboard

Functions

Link copied to clipboard

Provides a condition generator used to filter for related nodes the Permissions allows to access Used to only include nodes in relation filters which the permission allows to access. Prevents a filter information leak.

Link copied to clipboard
open override fun parseEntry(value: Any?, permission: Permission?): NodeSubFilter

Parses the entry of the provided filter

Link copied to clipboard
open override fun toGraphQLType(inputTypeCache: CacheMap<String, GraphQLInputType>): GraphQLInputType

Transforms this into a GraphQLInputType