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

Parser Syntax Error: implements with multiple interfaces #137

Closed
n1ru4l opened this issue Jun 8, 2018 · 1 comment
Closed

Parser Syntax Error: implements with multiple interfaces #137

n1ru4l opened this issue Jun 8, 2018 · 1 comment

Comments

@n1ru4l
Copy link

n1ru4l commented Jun 8, 2018

This is valid syntax:

type Artist implements Foo, Bar {
  id: ID!
}

The script fails with the following command: Syntax Error: Unexpected Name "Bar" undefined

Version: graphql-schema-linter@0.1.6

@cjoudrey
Copy link
Owner

cjoudrey commented Jun 8, 2018

Hello @n1ru4l,

This is indeed valid syntax, but has been deprecated as of version 0.13.0 of GraphQL.js. You may use this deprecated syntax by providing the --old-implements-syntax option.

Alternatively, you can use the new syntax:

type Artist implements Foo & Bar {
  id: ID!
}

You can find more information about this here: graphql/graphql-js#1169

@cjoudrey cjoudrey closed this as completed Jun 8, 2018
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