apollo-datasource-mongodb icon indicating copy to clipboard operation
apollo-datasource-mongodb copied to clipboard

BSON Version Conflicts with Newer Mongo Drivers

Open AustinHunt opened this issue 1 year ago • 0 comments

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 [email protected] 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.

AustinHunt avatar May 02 '24 17:05 AustinHunt