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.
I have the below cypher directive, which returns if you run it in the Neo4j browser (swapping out this)
homepage_posts: [Post] @cypher(statement: """
MATCH (this)-[:FOLLOWS]->(something)-[:WROTE|TAGGED]-(post:Post)
WITH post, ('User' IN labels(something)) AS followingAuthor
RETURN DISTINCT post{.*, followingAuthor: followingAuthor}
ORDER BY post.date
"""),
However, when I run this as a query using neo4j-graphql-js, it does not return. Instead it gives this error: ERROR [Error: Expected to find a node at ref slot 0 but found Map{...} instead
It does return if I get rid of the map projection ({.*, followingAuthor: followingAuthor}), so that's definitely where my problem appears to be. Is this perhaps unsupported by neo4j-graphql-js?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I have the below cypher directive, which returns if you run it in the Neo4j browser (swapping out
this
)However, when I run this as a query using neo4j-graphql-js, it does not return. Instead it gives this error:
ERROR [Error: Expected to find a node at ref slot 0 but found Map{...} instead
It does return if I get rid of the map projection (
{.*, followingAuthor: followingAuthor}
), so that's definitely where my problem appears to be. Is this perhaps unsupported by neo4j-graphql-js?Thank you in advance!
The text was updated successfully, but these errors were encountered: