Question

What would be an good way of storing application options in a neo4j database? I have few settings that I would like to persist for an application.

In an SQL database, I would create a table with 2 columns (name and value) (and perhaps a few more, but you get the idea).

In neo4j I'm thinking about a single node (with a 'Config' Label) and have an attribute for each setting I want to store.

Is this a recommended way of doing this? Feels kind of strange for a graph database, since this node will not have any relationship.

Was it helpful?

Solution

That is a perfectly fine way to do what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top