Verifier

class Verifier @JvmOverloads constructor(driver: Driver, schema: Schema, config: Verifier.Config = Config())

Verifier uses the driver and config to verify that the entities in a Neo4j graph conform to the schema.

Verifier is the client-side, data-introspecting analog of Schema.validate. Instead of validating a Cypher query before it runs, it verifies the data already stored in the graph.

The driver is owned and managed by the caller; Verifier doesn't Driver.close it.

Constructors

Link copied to clipboard
constructor(driver: Driver, schema: Schema, config: Verifier.Config = Config())

Types

Link copied to clipboard
data class Config @JvmOverloads constructor(val database: String? = null, val ignore: Regex? = null) : Record

Configuration for Verifier.verify.

Link copied to clipboard
data class Violation(val schemaViolation: Schema.Violation, val elementId: String? = null, val entity: Schema.Violation.Entity? = null) : Record

A violation found for a specific node or relationship in the graph.

Functions

Link copied to clipboard

Verify the nodes, including the incoming and outgoing relationships, with the given labels.