-
Notifications
You must be signed in to change notification settings - Fork 617
Not able to retrieve grand ancestor attributes overriden/included in current node data #2119
New issue
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
Comments
Just commented on the other issue with the same reply because I haven't seen this issue first. Please feel free to ignore the comment over there ;) |
After setting SDN to 6.0.3 with spring-boot 2.4.1, there is no effect on the outcome.
Alternate Query used: also same outcome
Java snippet:
myAnimal.getAttributes() -> does not have grand-parent attribute map entries, but has parent ones myAnimal.getParent().getParent() -> is null |
I am currently working on path related mapping improvements. There will be a fix coming up with the next service release to support a broader range of queries. e.g. something like this
or because the optional path match with a starting 0 eliminates the OPTIONAL bit (AFAIK)
will work. I leave this issue open for now because I want to give you something that could help you in the meantime. |
Hello @meistermeier , unit test logs -
|
As I said, the improvements for this will come in the next service release.
will do the job. It boils down the whole path mapping to a "root node, relationships, relatedNodes" pattern. I verified this with
|
Uh oh!
There was an error while loading. Please reload this page.
Custom Query used in AnimalRepository > @query:
MATCH (c:Animal {uuid: $id}) OPTIONAL MATCH path=(c)-[r:PARENT]->(p:Animal) RETURN path,collect(r),collect(p)
Spring Boot Version before update : 2.3.4
Spring Boot Version before update : 2.4.1
Domain reference:
This gives me response with attributes of current node and it's parent's nodes, but it skips the grand-parent's attributes.
MATCH (c:Animal {uuid: $id}) OPTIONAL MATCH path=(c)-[r:PARENT*]->(p:Animal) RETURN path,collect(r),collect(p) does'nt work
What should be the suggested change?
The text was updated successfully, but these errors were encountered: