Graph Store
Description
Graph stores register through IFlexGraphStore, providing a provider-agnostic API for node/edge CRUD and traversals.
Configuration in DI
Register only the provider.
// Pick ONE
services.AddFlexNeo4jGraphStore(configuration);
// services.AddFlexCosmosGremlinGraphStore(configuration);appsettings.json
Graph store configuration is read from FlexBase:DataStores:Graph:<Provider>.
{
"FlexBase": {
"DataStores": {
"Graph": {
"Neo4j": {
"Uri": "bolt://localhost:7687",
"Username": "neo4j",
"Password": "<store-in-secrets>"
}
}
}
}
}Sample usage ({YourApplication})
Provider pages
Neo4j:
graph-store/neo4j.mdCosmos Gremlin:
graph-store/cosmos-gremlin.md
Provider considerations
Graph providers vary in query language; prefer the structured
IFlexGraphStoreAPIs for portability.
Last updated