Skip to content

Commit

Permalink
fix: env var
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Oct 18, 2024
1 parent 209e9cd commit 1479b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nx_arangodb/classes/dict/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class GraphDict(UserDict[str, Any]):
stores the attributes in a collection with the graph name as the document key.
The default collection is called `_graphs`. However, if the
`DATABASE_GRAPH_COLLECTION_NAME` environment variable is specified,
`DATABASE_GRAPH_COLLECTION` environment variable is specified,
then that collection will be used. This variable is useful when the
database user does not have permission to access the `_graphs`
system collection.
Expand Down Expand Up @@ -144,7 +144,7 @@ def __init__(
self.adb_graph = graph
self.graph_name = graph.name
self.collection_name = os.environ.get(
"DATABASE_GRAPHS_COLLECTION_NAME", "_graphs"
"DATABASE_GRAPH_COLLECTION", "_graphs"
)

self.graph_id = f"{self.collection_name}/{self.graph_name}"
Expand Down

0 comments on commit 1479b42

Please sign in to comment.