fun generateOneNodeQuery(definition: NodeDefinition, dataFetchingEnvironment: DataFetchingEnvironment, additionalConditions: List<CypherConditionGenerator>, requiredPermission: Permission?): NodeQuery

Generates a NodeQuery which loads a single Node Can use the dataFetchingEnvironment to fetch a subtree of node

Return

the generated NodeQuery to load the node

Parameters

definition

NodeDefinition of the node to load

dataFetchingEnvironment

can optionally be provided to fetch a subtree of nodes

additionalConditions

list of conditions which are applied to filter the returned node

requiredPermission

optional required permission