wolfpackks
wolfpackks

Reputation: 23

ArangoDB: Spring Data and Graph Model Support

Does ArangoDB Spring Data support a Graph data model or just Documents and Collections?

I'm playing around with ArangoDB and Java to learn more about it.

I'm using Spring-Boot and ArangoDB-Spring-Data with a very basic Character and Location domain model. When using ArangoDB-Spring-Data, the Character and Location repositories save the domain models as only Collections as seen in the ArangoDB UI. I would like for ArangoDB-Spring-Data to persist the domain models as a Graph model.

Is is possible to persist the domain models as a Graph model or do I have to do this manually with the JDBC driver?

Upvotes: 2

Views: 508

Answers (1)

mpv89
mpv89

Reputation: 1891

There is currently no support in spring-data-arangodb for named graphs. It does exists a feature request issue on github but there are currently no plans if and when this feature is coming.

If you want so save your entities in a named graph you have to use the underlying driver. It can be accessed over method driver() in ArangoOperations.

Upvotes: 1

Related Questions