dart_neo4j_ogm library

Neo4j Object-Graph Mapping (OGM) annotations for Dart.

This library provides annotations for marking Dart classes and fields to enable automatic generation of Cypher query construction methods.

Classes

CypherElementId
A type-safe representation of a Cypher node element ID that can be either set or unset.
CypherId
A type-safe representation of a Cypher node ID that can be either set or unset.
CypherNode
Annotation for marking Dart classes that should generate Cypher node methods.
CypherProperty
Annotation for controlling field-level Cypher generation behavior.

Constants

cypherNode → const CypherNode
Const instance of CypherNode annotation for convenience.

Functions

cypherElementIdFromJson(String? json) CypherElementId
Top-level helper function for json_serializable fromJson conversion. Use with @JsonKey(fromJson: cypherElementIdFromJson)
cypherElementIdToJson(CypherElementId elementId) String?
Top-level helper function for json_serializable toJson conversion. Use with @JsonKey(toJson: cypherElementIdToJson)
cypherIdFromJson(int? json) CypherId
Top-level helper function for json_serializable fromJson conversion. Use with @JsonKey(fromJson: cypherIdFromJson)
cypherIdToJson(CypherId id) int?
Top-level helper function for json_serializable toJson conversion. Use with @JsonKey(toJson: cypherIdToJson)