MongoDB simple question
Hey!
1. I use the MongoDB Realm SDK to query my db from Workers, as the NodeJS SDK is not supported in Workers runtime.
2. Realm SDK is now deprecated (alongside the Data API).
Now what? There is just no way to use MongoDB in a Worker runtime anymore?
3 Replies
Your options are limited. Basically you will need to use something like a REST/API service to connect to MongoAtlas. Here is post from MongoDb with some suggestions with respect to the deprecation of their GraphQL service, some of the suggested providers can also provide REST/API's. If you don't want to use a 3rd party provider, you can always spin up your own using something like express running on a cheap VPS.
Note, I haven't tried any of the providers suggested by MongoDB.
I would also like to say that both MongoDb and Cloudflare, together, should sort this out and find a solution because this has been a problem for a long time and doesn't appear to be getting resolved.