-
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
sgqlc-codegen fails with AttributeError: 'ObjectValueNode' object has no attribute 'value' #187
Comments
Seems it fails on generating this arg:
with type:
|
could you share a reproducible example? Other than that, it seems that newer version of graphql-core may be an issue, could you check which version are you using? See #186 |
Sorry for long answer
I've tried do all my best for minimal reproducible example If I remove arg on 111 line (PerformSynchronously) it successfully generates classes. |
@4ekin is it still happening with the latest releases? |
Hi, sorry for long answer Well, graphql-core doc for class Visitor says that if you want to stop visiting you should use BREAK value But when their implementation of Your Visitor implemetation returns bool value for BooleanNode, and in my case during parsing
it returns True, and graphql-core visit func decide to BREAK visiting, and your Visitor callback https://github.com/profusion/sgqlc/blob/master/sgqlc/codegen/schema.py#L52 does not work. If I change https://github.com/graphql-python/graphql-core/blob/main/src/graphql/language/visitor.py#L263 to
for me it works ideal. What do you think about it @barbieri , is it core bug? |
Hello!
Great lib, really great, thank you for your work!
Eventually I wanted to update my api adapter and during codegen operation it fails
Version from Pipfile.lock -
Can you help me?
The text was updated successfully, but these errors were encountered: