Generates Cypher-DSL queries based on a NodeQuery, executes it and parses the result
Parameters
used to execute the query
used to transform the result into a node
used to render the Cypher-DSL queries
Constructors
Properties
lookup for generated ExtensionFields
Counter for unique name generation
Lookup table for already created nodes
Map of all nodes that were returned by a query
lookup for generated SubQueries
Functions
Adds before and after filters to the builder
Applies all filter conditions to a builder and returns the resulting builder
Adds first and last filters, and adds skip. Requires that the nodes are already correctly ordered
Matches the relationships defined in relationshipDefinitions and applies authorization conditions
Starts a new SubQuery builder and applies the specified amount of unwinds to allNodes
If necessary, adds a with statement to the builder which fetches totalCount
Wraps the builder with applyTotalCount if required by the options
Creates SubQueries for each SubQuery in the provided nodeQuery Generates recursively depth first.
Creates a query based on nodeQuery Must only be used for the root query Does only include nodes in nodes and does only fetch the id of these nodes
Creates the return statement and builds the query. This does NOT include total count and is meant for partial results
Generates a query based on nodeQuery Must only be used for the root query
Creates the return statement and builds the query. If totalCount is not fetched, null is set as value for totalCount Must only be used for the root query
Generates a search root query based
Generates a query based on nodeQuery Must only be used for SubQueries and not for the root query
Creates a SubQuery using a Cypher SubQuery Uses NodeSubQuery.onlyOnTypes to only fetch related nodes when necessary
Creates the return statement and builds the query. If totalCount is not fetched, null is set as value for totalCount Must only be used for SubQueries and not for the root query
Executes the query
Executes a partial query and registers the results in nodes
Generates a Condition which can be used to filter for items before/after a specific cursor
Generates a subquery res which return no nodes
Generate a map to fetch extension fields for a NodeQuery. Registers all extension fields in extensionFieldLookup
Generates a Cypher SubQuery which gets the list of all nodes, and applies pagination filtering, related nodes SubQueries, ordering and result aggregation
Generates the result statement for the query generated by generateMainSubQuery. Also orders the nodes, and builds a statement out of the builder
Transforms an Order into a list of SortItem
Generates the expression for the result node, including the node itself and extension fields
Generates a new unique name
Parses the result of a query (a list of nodes, and optional a totalCount). Parses recursively
Parses the result of a query (a list of nodes, and optional a totalCount) Parses recursively