Skip to content

Object Manager - Type-Safe Graph Mapping

StatelessGraphObjectManager is a high-level API for working with graph-mapped objects using annotated models. It generates efficient Cypher queries automatically and provides a type-safe DSL for filtering and ordering.

It keeps no state between calls. What a load returns is what the store holds, and what a save writes depends only on the object and the arguments you pass.

Get one from the GraphObjectManagerFactory, which the Spring Boot starter provides:

@Bean
fun graphObjectManager(factory: GraphObjectManagerFactory): StatelessGraphObjectManager = factory.stateless()

Earlier releases documented GraphObjectManager, which tracks what it loads in a session. It is deprecated: see Migrating from GraphObjectManager.

Upgrading from 0.0.x? docs/0.1.0-stateless-object-manager.md lists what changed and what to do about data saved before it.