Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Unable to use a map projection #564

@dan-fein

Description

@dan-fein

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions