We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neomodel_inspect_database writes all relationships to StructuredNode
neomodel_inspect_database only writes first relationship to StructuredNode
create node with 2 different outgoing relationship types
create (p1:Person) create (p2:Person) create (p3:Pet) create (p1)-[:HAS_FRIEND]->(p2) create (p1)-[:HAS_PET]->(p3)
run neomodel_inspect_database script
neomodel_inspect_database --db bolt://neo4j:neo4j@localhost:7687 --write-to output.py
output:
from neomodel import StructuredNode, RelationshipTo, StructuredRel, ZeroOrOne class Person(StructuredNode): has_friend = RelationshipTo("Person", "HAS_FRIEND", cardinality=ZeroOrOne)
expected output (which can be replicated by removing the limit clause in RelationshipInspector.outgoing_relationships):
from neomodel import StructuredNode, RelationshipTo, StructuredRel, ZeroOrOne class Person(StructuredNode): has_friend = RelationshipTo("Person", "HAS_FRIEND", cardinality=ZeroOrOne) has_pet = RelationshipTo("Pet", "HAS_PET", cardinality=ZeroOrOne)
the LIMIT clause in RelationshipInspector.outgoing_relationships causes only the first relationship to be returned:
neomodel/neomodel/scripts/neomodel_inspect_database.py
Lines 119 to 136 in 4bd6302
The text was updated successfully, but these errors were encountered:
Hey ! Now that neomodel 5.3.0 is out and work on async is done ; I hope I can soon have a look into that !
Thank you for the nicely documented issue :)
Sorry, something went wrong.
@schlopmyflop Fixed in the attached PR, should make it into 5.3.1
Successfully merging a pull request may close this issue.
Expected Behavior
neomodel_inspect_database writes all relationships to StructuredNode
Actual Behavior
neomodel_inspect_database only writes first relationship to StructuredNode
How to Reproduce the Problem
create node with 2 different outgoing relationship types
Simple Example
run neomodel_inspect_database script
output:
expected output (which can be replicated by removing the limit clause in RelationshipInspector.outgoing_relationships):
Cause
the LIMIT clause in RelationshipInspector.outgoing_relationships causes only the first relationship to be returned:
neomodel/neomodel/scripts/neomodel_inspect_database.py
Lines 119 to 136 in 4bd6302
Specifications
Versions
The text was updated successfully, but these errors were encountered: