You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
Hi I have been stuck on this for a few days now. This tends to work in the Desktop Browser but not neo4j-graphql-js. So I'm hoping you can help.
I have this MATCH:
OPTIONAL MATCH (this)-[r:FOLLOWS]->(something)-[WROTE|TAGGED]-(post:Post)
And I would like to return all posts combined with r. I tried to use a map but it was rejected by neo4j as expecting a node. I tried to use a virtual node but that didn't seem to be supported. I can't figure out how to use this.
This is my full query currently:
OPTIONAL MATCH (this)-[r:FOLLOWS]->(something)-[r2:WROTE|TAGGED]-(post:Post)
WITH COLLECT(post) as rows
OPTIONAL MATCH (this)-[:WROTE]->(post:Post)
WITH rows + COLLECT(post) as allRows
UNWIND allRows as post
RETURN DISTINCT post
ORDER BY post.date DESC
I don't think you can just RETURN DISTINCT post, r, right? Because neo4j-graphql-js expects one single object as a response?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi I have been stuck on this for a few days now. This tends to work in the Desktop Browser but not neo4j-graphql-js. So I'm hoping you can help.
I have this MATCH:
OPTIONAL MATCH (this)-[r:FOLLOWS]->(something)-[WROTE|TAGGED]-(post:Post)
And I would like to return all
post
s combined with r. I tried to use a map but it was rejected by neo4j as expecting a node. I tried to use a virtual node but that didn't seem to be supported. I can't figure out how to use this.This is my full query currently:
I don't think you can just RETURN DISTINCT post, r, right? Because neo4j-graphql-js expects one single object as a response?
Thank you in advance!
The text was updated successfully, but these errors were encountered: