-
Notifications
You must be signed in to change notification settings - Fork 86
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
Code generation for Interfaces not working correctly #132
Comments
I'll take a look at the bug, that As for your second point, unfortunately that's bit harder due the usage of meta classes. What I plan to do someday is to generate that for queries, see #129 |
I can surely write a PR. Can you point me into the right direction maybe where the code might fail? OK, I found it. Will submit a PR soon. |
Can you please approve #134 ? |
Hi,
first of all - thank you very much for this great piece of work.
I have some problems with code generation. Attached you find my schema.json and my operations.gql so you can reproduce this.
First, types that implement interfaces are not correctly used in the generated operations.py:
Steps to reproduce:
sgqlc-codegen schema schema.json schema.py
sgqlc-codegen operation --schema schema.json client:schema operations.py operations.gql
BarBaz
cannot be found. Either an import is missing or the codegen should put outclient.BarBaz
instead.Second, is it possible to get auto-completion in vscode for the generated operations? Currently the derived type seems to be
Any
. I'm currently using pylance but can of course use something else.client.zip
The text was updated successfully, but these errors were encountered: