graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

ValidationError when parsing mutation with `...` in a string

Open tgnla opened this issue 3 years ago • 0 comments

When trying to parse a mutation like this

mutation SaveUser {
  saveUser(id: 12345, name: "new...name") {
    id
  }
}

GraphQL::Client#parse raises GraphQL::Client::ValidationError: uninitialized constant name

It seems to be confusing the parameter string for the name field with ... in it for a fragment.

Example failing test here: https://github.com/tgnla/graphql-client/commit/c1ec79ab6b7ec70b7efd50bf435ecb89d5b3cedc

tgnla avatar Jul 08 '22 18:07 tgnla