Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch to fix caching on datasource for mongoose models
Currently apollo-datasource-mongodb semi-supports mongoose. This is the second patch required to allow caching to work correctly - otherwise bjson throws circular reference errors due to how mongoose hydrates objects. By changing the mongoose integration to always return lean we can fix the conversion. Known Issue: GraphQLGuide/apollo-datasource-mongodb#74 Mongoose Lean: https://mongoosejs.com/docs/tutorials/lean.html
- Loading branch information