Skip to content

Commit

Permalink
Update Neo4jPathsModel with relationships (#100)
Browse files Browse the repository at this point in the history
* Update Neo4jPathsModel with relationships

---------

Co-authored-by: Valerii Mironchenko <[email protected]>
  • Loading branch information
ValeriyWorld and Valerii Mironchenko authored Jul 15, 2024
1 parent b9af751 commit 79dac43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oddrn_generator/path_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,15 @@ class Neo4jPathsModel(BasePathsModel):
databases: str
nodes: Optional[str] = None
fields: Optional[str] = None
relationships: Optional[str] = None

@classmethod
def _dependencies_map_factory(cls):
return {
"databases": ("databases",),
"nodes": ("databases", "nodes"),
"fields": ("databases", "nodes", "fields"),
"relationships": ("databases", "nodes", "relationships"),
}

data_source_path: str = "databases"
Expand Down
1 change: 1 addition & 0 deletions tests/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
"databases": "some_database",
"nodes": "some_node",
"fields": "some_field",
"relationships": "some_relationship",
},
"aliases": {},
},
Expand Down

0 comments on commit 79dac43

Please sign in to comment.