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

Support for interface implementing another interface doesn't seem to work. #64

Closed
ehiggs opened this issue Apr 7, 2022 · 1 comment
Closed

Comments

@ehiggs
Copy link

ehiggs commented Apr 7, 2022

#49 implemented interfaces that implement other interfaces for #44. However, when I try to use this in the wild, it doesn't seem to work.

Example:

This doesn't seem to work in the wild.

e.g.

query.graphl:

query FooList(bazId: ID!) {
  baz
}

schema.graphql:

interface Foo {
  foo: Int
}

interface Bar implements Foo {
  bar: Int
}

type Baz implements Bar {
  baz: ID!
}
$ graphql-client generate query.graphql --schema-path schema.graphql 
Error: Error generating module code: Parser error: schema parse error: Parse error at 5:15
Unexpected `implements[Name]`
Expected `end of input`


Location: /home/ehiggs/.cargo/registry/src/github.com-1ecc6299db9ec823/graphql_client_cli-0.10.0/src/generate.rs:75:24

I've run into this in the wild when dealing with Atlassian's (experimental) Jira Graphql schema derived using python's gql:

gql-cli https://jdog.atlassian.net/gateway/api/graphql --print-schema
@ehiggs
Copy link
Author

ehiggs commented Apr 9, 2022

It seems I didn't check the main branch correctly and 0.10.0 was released before the functionality was merged. When is g-c 0.11.0 due? Thanks!

@ehiggs ehiggs closed this as completed Apr 9, 2022
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

1 participant