graphql-client
graphql-client copied to clipboard
ValidationError when parsing mutation with `...` in a string
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