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

Error on double backslashes

Open RubenVanEldik opened this issue 4 years ago • 0 comments

I am trying to create a GraphQL query from string. The string contains some data with a double backslash in it (Modules\\Assets\\Entities) to connect with a specific morph relation on the back-end.

I expect the parser to just generate a GraphQL query from the string, like all other valid GraphQL strings. But unfortunately I get this error Syntax Error: Cannot parse the unexpected character "\\"..

I feel like it might have a very obvious solution, but I have no idea what and I can't find anything on the internet. Am I just overlooking something or is this a bug within graphql-tag?

RubenVanEldik avatar Sep 04 '20 22:09 RubenVanEldik