Types

Link copied to clipboard
class AuthorizedRelationDefinition(val relationshipDefinition: RelationshipDefinition, val relatedNodeDefinition: NodeDefinition, val authorizationCondition: CypherConditionGenerator?)

A RelationshipDefinition with an optional authorization condition

Link copied to clipboard

Used by classes which are able to generate conditions based on a Node

Link copied to clipboard
class FieldFetchingContext(val arguments: Map<String, Any>, val selectionSet: DataFetchingFieldSelectionSet, val resultKeyPath: String)

Context for fetching entries in a node query

Link copied to clipboard
class NodeExtensionField(definition: ExtensionFieldDefinition, val dfe: DataFetchingEnvironment, val arguments: Map<String, Any>, onlyOnTypes: List<NodeDefinition>?, resultKeyPath: String) : NodeQueryEntry<ExtensionFieldDefinition>

Defines an extension field which should be loaded with a NodeQuery

Link copied to clipboard
class NodeQuery(definition: NodeDefinition, val options: NodeQueryOptions, entries: List<NodeQueryEntry<*>>) : QueryBase<NodeQuery>

Defines a query which fetches Nodes of type definition

Link copied to clipboard
class NodeQueryEngine(val configurationProperties: GraphglueCoreConfigurationProperties, val client: ReactiveNeo4jClient, val mappingContext: Neo4jMappingContext, val renderer: Renderer)

Engine for executing NodeQuerys

Link copied to clipboard
abstract class NodeQueryEntry<T : FieldDefinition>(val onlyOnTypes: List<NodeDefinition>?, val resultKeyPath: String, val fieldDefinition: T)
Link copied to clipboard
class NodeQueryExecutor(val client: ReactiveNeo4jClient, val mappingContext: Neo4jMappingContext, val renderer: Renderer)

Generates Cypher-DSL queries based on a NodeQuery, executes it and parses the result

Link copied to clipboard
data class NodeQueryOptions(val filters: List<CypherConditionGenerator> = emptyList(), val orderBy: Order<*>? = IdOrder, val after: Map<String, Any?>? = null, val before: Map<String, Any?>? = null, val first: Int? = null, val last: Int? = null, val skip: Int? = null, val fetchTotalCount: Boolean = true, val ignoreNodes: Boolean = false, val overrideIsAllQuery: Boolean = false)

Defines how a NodeQuery fetches data

Link copied to clipboard
class NodeQueryParser(val nodeDefinitionCollection: NodeDefinitionCollection, val filterDefinitionCollection: FilterDefinitionCollection?, val objectMapper: ObjectMapper)

Parser to get NodeQuerys Can be used to create queries which load a subtree of nodes in one query

Link copied to clipboard
data class NodeQueryResult<T : Node>(val options: NodeQueryOptions, val nodes: List<T>, val totalCount: Int?)

Result of a NodeQuery

Link copied to clipboard
class NodeSubQuery(definition: FieldDefinition, val query: NodeQuery, onlyOnTypes: List<NodeDefinition>?, val relationshipDefinitions: List<AuthorizedRelationDefinition>, resultKeyPath: String) : NodeQueryEntry<FieldDefinition>

Defines a SubQuery which is part of a NodeQuery Must only be evaluated if parent type is in onlyOnTypes

Link copied to clipboard
private data class OrderContext(val order: Order<*>, val variables: Map<String, SymbolicName>)

Wrapper for an Order and the variables used in it

Link copied to clipboard

Defines a partial query which fetches Nodes of type definition

Link copied to clipboard
private data class PartialNodeQueryResult(val nodes: List<Node>, val totalCount: Int?)

Result of a query

Link copied to clipboard
abstract class QueryBase<T : QueryBase<T>>(val definition: NodeDefinition, val entries: List<NodeQueryEntry<*>>)

Base class for queries

Link copied to clipboard
class SearchQuery(definition: NodeDefinition, val options: SearchQueryOptions, entries: List<NodeQueryEntry<*>>) : QueryBase<SearchQuery>

Defines a search query which fetches Nodes of type definition

Link copied to clipboard
data class SearchQueryOptions(val filters: List<CypherConditionGenerator> = emptyList(), val query: String, val first: Int, val skip: Int?)

Defines how a SearchQuery fetches data

Link copied to clipboard
data class SearchQueryResult<T : Node?>(val options: SearchQueryOptions, val nodes: List<T>)

Result of a SearchQuery

Link copied to clipboard
private data class StatementWithResultNodesAndNodes(val statement: Statement, val allResultNodes: SymbolicName, val allNodes: SymbolicName)

Statement with associated name for result nodes and all nodes

Link copied to clipboard
private data class StatementWithSymbolicName(val statement: Statement, val symbolicName: SymbolicName)

Wrapper for a Statement and an associated name

Properties

Link copied to clipboard
private const val NODE_FETCH_OFFSET: Int = 1

Amount of nodes which are fetched additionally to determine if there are more nodes to come

Link copied to clipboard
const val NODE_KEY: String

Name for the single node map entry

Link copied to clipboard
const val NODES_KEY: String

Name for the node list map entry

Link copied to clipboard
const val ONE_NODE_QUERY_LIMIT: Int = 2

Amount of nodes which are fetched when fetching a one-side of a query Fetches two nodes to detect an inconsistent state in the database

Link copied to clipboard
const val ORDER_KEY: String

Name for the order map entry

Link copied to clipboard

Name for the parent node id map entry

Link copied to clipboard

Name for the total count map entry