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

'Lazy' object has no attribute '__field_names__' #182

Open
tteguayco opened this issue Dec 20, 2021 · 3 comments
Open

'Lazy' object has no attribute '__field_names__' #182

tteguayco opened this issue Dec 20, 2021 · 3 comments
Assignees

Comments

@tteguayco
Copy link

This is occurring, not always, when accessing the _type property of a query:

image

It's strange because, after the error is raised and the debugger is stopped on that line, query._type is not of type 'Lazy' anymore.

Any ways of bypassing this issue?

@barbieri
Copy link
Member

I need a full backtrace and if possible an example, I never faced this one... Lazy should be replaced with the actual type before it's used, but it's needed since GraphQL allows cycles, so one type can depend on itself... but before usage it should be "realized"

@barbieri barbieri self-assigned this Feb 2, 2022
@barbieri
Copy link
Member

barbieri commented Feb 2, 2022

any updates? could you provide a backtrace? some example on how to reproduce?

@tteguayco
Copy link
Author

I'm sorry, I don't think I have the time for this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants