graphql-python / graphql-python/graphene-django

Unable to Pickle Schema dude to NodeConnection

Open
#1,532 0 comments 0 reactions 0 assignees View on GitHub
🐛bug
Dominant language
Python
Stars
4.4k
Forks
760
PR merge metrics
No merged PRs in 30d

Description

* **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 >: 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.