-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Path meta data doesn’t include node labels or rel type (HTTP API) #12613
Comments
@johannessen A new additional result format will be available in Neo4j 4.2. This should include more complete information, so will hopefully address your issue. |
Jolt looks good to me. Nice job, thanks! |
I am not sure if I am missing something, but on neo4j 2.4.1 I still don't see any labels information in the meta property of the response. Are there any future plans for adding them? |
@Maadhav I assume you mean Neo4j 4.2.1, right? |
@fbiville I have never worked before with jolt, and all my frontend apps, are using the JSON response from the rest of API. Just wanted to know if it would be possible to add the labels key in the meta field of the response in the future. |
@Maadhav I'm fairly confident this won't happen. You will need to switch to Jolt. |
As pointed out in the initial report, labels and types are available in JSON as part of the Also, Jolt is much faster than JSON. ⚡️ |
When Cypher statements returning paths are executed over the Transactional HTTP API, the JSON results do not include the labels of the nodes in the path, nor do they include the types of the relationships in the path.
This issue just came up in a conversation with @fbiville. In #12306 (comment), @technige mentioned that several issues around the HTTP output format were already known, so I kind of expected that this particular issue was one of them and never pursued this up until now.
Reproducing the issue
Run the following query on the transactional HTTP interface.
Expected JSON result
Actual JSON result
Note that the
rest
resultDataContents also do not include node labels or relationship types. Thegraph
resultDataContents do, but it seems to me that this meta data should really be available in themeta
resultDataContents.One way of resolving this issue would be to add the labels/type in
Neo4jJsonCodec.writeMeta()
, withwriteNodeOrRelationshipMeta()
being adjusted accordingly.The text was updated successfully, but these errors were encountered: