class NodeDefinition(val nodeType: KClass<out Node>, val persistentEntity: Neo4jPersistentEntity<*>, extensionFieldDefinitions: Map<String, ExtensionFieldDefinition>)

Definition of a Node Used to find relationships, get the primary label, create a Cypher-DSL return expressions

Parameters

nodeType

the class associated with the definition

persistentEntity

defines Neo4j's view on the node

extensionFieldDefinitions

all known ExtensionFieldDefinition beans

Constructors

Link copied to clipboard
constructor(nodeType: KClass<out Node>, persistentEntity: Neo4jPersistentEntity<*>, extensionFieldDefinitions: Map<String, ExtensionFieldDefinition>)

Properties

Link copied to clipboard

map of all found authorizations defined on this type from authorization name to Authorization

Link copied to clipboard

Map of all field definitions by GraphQL name

Link copied to clipboard

Map of all field definitions by property

Link copied to clipboard
val labels: Labels

The labels of the Node

Link copied to clipboard

map of all found authorizations defined on this type and all supertypes from authorization name to Authorization

Link copied to clipboard

GraphQL type name

Link copied to clipboard
val nodeType: KClass<out Node>
Link copied to clipboard
val persistentEntity: Neo4jPersistentEntity<*>
Link copied to clipboard

The primary label of the Node

Link copied to clipboard

List of all relationship definitions by GraphQL name

Link copied to clipboard

map of all relationship definitions by defining property Name of property as key

Link copied to clipboard
val returnExpression: Expression

Expression which can be used when creating a query using Cypher-DSL Fetches all necessary data to map the result to a Node

Link copied to clipboard
val returnNodeName: SymbolicName

Name of the return value in the returnExpression

Link copied to clipboard

The name of the search index, if existing

Functions

Link copied to clipboard

Creates all authorizations by search for Authorization annotations on nodeType

Link copied to clipboard

Finds the ExtensionFieldDefinitions for this NodeDefinition from the provided list of all definitions

Link copied to clipboard

Creates all authorizations by search for Authorization annotations on nodeType and all super types

Link copied to clipboard

Gets the set of authorization names which allow via a Relation defined by a property

Link copied to clipboard

Gets the FieldDefinition of a property

Link copied to clipboard

Gets the FieldDefinition by the GraphQL name of the field

Link copied to clipboard

Gets the Neo4j name of a property

Link copied to clipboard
private fun getRelationPropertyType(property: KProperty1<*, *>): KClass<out Node>

Gets the node type of a NodeProperty or NodeSetProperty

Link copied to clipboard

Merges a list of Authorizations

Link copied to clipboard
fun node(): Node

Generates a new CypherDSL node with the necessary labels

Link copied to clipboard
open override fun toString(): String