Skip to content

Invalid query variables #6

@orv1s

Description

@orv1s

Spreading array into the variables argument creates keys from indexes like $0, $1...
Seems like this is invalid GraphQL syntax and the server returns 400 error.

https://github.com/hygraph/hygraph-astro-loader/blob/0abd87041844c0e361450217dfd00e7d3d26f2dc/src/HygraphLoader.ts#L18C2-L18C29

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