NavidK0 / SimpleGraphQL-For-Unity

A simple graphQL client that allows one to use .graphql files (or code) for queries, mutations, and subscriptions with Unity.
MIT License
34 stars 18 forks source link

No support for arrays in GraphQL Input types? #39

Closed Sewdn closed 2 years ago

Sewdn commented 2 years ago

Hi,

I get this exception from GraphQLParser/ParserContext.cs:147

GraphQLSyntaxErrorException: Syntax Error GraphQL (1:25) Expected $, found [
1: query Games($gameIds: ID[]!) {
                           ^

I'm guessing there is currently no support for this graphql syntax: (although it is valid syntax and it works against my running and validated schema):

query Games($gameIds: [ID!]!) {
  games(gameIds: $gameIds) {
    _id
    ...
  }
}

Is the Parser a port of an existing GraphQL parser implementation?