Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error GraphQL (740:50) Unexpected character "&". #246

Open
garfieldmoore opened this issue Oct 23, 2020 · 1 comment
Open

Syntax Error GraphQL (740:50) Unexpected character "&". #246

garfieldmoore opened this issue Oct 23, 2020 · 1 comment

Comments

@garfieldmoore
Copy link

While using graphdoc I get the above error when processing a schema.

The issue seems to be the use of multiple interfaces on a type. For example;

type MyObject implements MyInterface & MySecondInterface {
...
}

we are using the following project to create our API;

https://github.com/graphql-dotnet/graphql-dotnet

@kai-tock
Copy link

kai-tock commented Sep 8, 2021

Ran into this as well. Turns out that for one reason or another, this library uses v0.7.2 of its graphql package dependency (before implementing multiple interfaces was even in the spec) instead of the version ^15.4.0 listed in its package.json.

Adding this to my package.json fixed it for me:

"resolutions": {
  "graphql": "^15.5.3" // or whatever version of graphql you use
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants