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

Unable to Pickle Schema dude to NodeConnection #1532

Open
vt-rc opened this issue Aug 14, 2024 · 0 comments
Open

Unable to Pickle Schema dude to NodeConnection #1532

vt-rc opened this issue Aug 14, 2024 · 0 comments
Labels

Comments

@vt-rc
Copy link

vt-rc commented Aug 14, 2024

  • What is the current behavior?

I am trying to pickle and cache schema for performance reason, but I am unable to do so. I tried the following after Schema is generated from graphene.types.Schema

Note that this requires Alpha release of latest Graphql-Core

pickle.dump(self.graphql_schema, f)

_pickle.PicklingError: Can't pickle <XxxxxNodeConnection meta=<ConnectionOptions name='XxxxxNodeConnection'>>: attribute lookup XxxxxNodeConnection on graphene.types.objecttype failed

  • What is the expected behavior?

It should give me a proper pickled data

  • What is the motivation / use case for changing the behavior?

to cache large schema and reduce start up load time.

@vt-rc vt-rc added the 🐛bug label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant