class SimpleFilterEntryDefinition(name: String, description: String, val type: GraphQLInputType, val neo4jName: String, val conditionGenerator: (property: Property, value: Parameter<*>) -> Condition) : FilterEntryDefinition

Definition for a single filter entry which filters by a Neo4j property using a conditionGenerator to generate the condition.

Parameters

name

the name of the field on the GraphQLInputObjectType

description

the description of the field

type

the field type in the GraphQL schema, should require no additional parsing (e.g. String, Int, ...)

neo4jName

the name of the property on the node in the database (might be different from name)

conditionGenerator

used to generate the condition which is used in the database, takes the property and the parameter as input

Constructors

Link copied to clipboard
constructor(name: String, description: String, type: GraphQLInputType, neo4jName: String, conditionGenerator: (property: Property, value: Parameter<*>) -> Condition)

Properties

Link copied to clipboard
private val conditionGenerator: (property: Property, value: Parameter<*>) -> Condition
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val neo4jName: String
Link copied to clipboard
private val type: GraphQLInputType

Functions

Link copied to clipboard
fun generateCondition(node: Node, value: Any): Condition

Generates the condition based of the provided Node Uses conditionGenerator to generate the condition

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

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