Loren ☺️
Loren ☺️
My guess is different versions of `mongodb` or `@types/mongodb`? Here are the versions this package uses: https://github.com/GraphQLGuide/apollo-datasource-mongodb/blob/6eff2ac8075f553dbb1814199b893e425f2b3908/package.json#L20-L37 The type defs were an external contribution, and we don't have a demo...
Nope, would welcome that contribution! ☺️
> I'm sure that it is caused by something weird in my Mongoose schema, Do you have ideas on how to debug the issue There are a number of places...
> It is unclear why bson.EJSON.stringify is in place Might the JS objects have things like int32s that don't survive `JSON.parse(JSON.stringify(o))`? https://github.com/mongodb/js-bson#ejsonstringifyvalue-replacer-space-options
Yeah, they're no longer binary BSON, but I think the object can have types that aren't supported by JSON (hence EJSON). Would be happy to review a PR for approach...
Hey @sojharo, sorry for the delay, and thanks for the contribution! Did you test the types manually for both MongoDB Collections and Mongoose Models? If you feel like an automated...
`peerDependency` sounds good, PR welcome
No reason I know of. Batching and caching should work with your helper
Thanks for reporting! What version? This may have been fixed in `0.5.2`
I'm unable to reproduce—I added a passing test case that I think does what you said? https://github.com/GraphQLGuide/apollo-datasource-mongodb/blob/08e1c076739867a9e73a707adc66767a7e8525d7/src/__tests__/datasource.test.js#L132-L136 If you could modify/add a test case that demonstrates the bug, that would...