Skip to content

AST node #1310

Description

@Pizza1

Screenshot

Description

I'm trying to do a gql request as follows

query is

const GET_POSTS = gqlquery GetPosts($cursor: String) { posts(after: $cursor) { edges { node { id title content } cursor } pageInfo { hasNextPage endCursor } } };

variables is {cursor: null}

and query is

const fetcher = (query, variables) => graphQLClient.request(query, variables);

(GET_POSTS is passed as query, {cursor : null} is passed as variables)

But keep getting the error message
Error: Invalid AST Node: [function proxy].
at devAssert (devAssert.mjs:5:1)
at visit (visitor.mjs:168:32)
at print (printer.mjs:10:15)
at analyzeDocument (analyzeDocument.js:31:71)
at GraphQLClient.request (GraphQLClient.js:65:49)
at fetcher

What might be the reason for this?

Thank you

Reproduction Steps/Repo Link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions