vektah / gqlparser

A port of the parser from graphql-js into golang
MIT License
498 stars 123 forks source link

Unexpected Name "implements" error when parse interface implements other interface #233

Closed sonatard closed 2 years ago

sonatard commented 2 years ago

https://go.dev/play/p/pxF4FN7LQJ1

schema.graphql:6: Unexpected Name "implements"
interface Node {
    id: ID!

}
interface Sample implements Node { # Unexpected Name "implements"
    id: ID!
}
giautm commented 2 years ago

You used the wrong version, it should be github.com/vektah/gqlparser/v2

https://go.dev/play/p/8bVJi2lynry