GraphQLGuide / apollo-datasource-mongodb

Apollo data source for MongoDB
MIT License
285 stars 64 forks source link

BSON Version Conflicts with Newer Mongo Drivers #124

Open AustinHunt opened 5 months ago

AustinHunt commented 5 months ago

We use apollo 3 and don't plan to upgrade any time in the near future. But, we are continuously upgrading our mongodb library. With that comes updates to the bson package. It looks like this library has a hard dependency on bson@4.x this breaks when you upgrade your mongodb library to the latest version 6.x because mongodb imports the latest version of bson.

My recommended fix: Move the bson package to being a peer-dependency and allow the user to specify their own bson version.