How to handle query in local MongoDB database, while I am using MongoDB Atlas Search?

751 views Asked by At

I am looking at the MongoDB Atlas Search. It seems only work in the MongoDB Atlas Cloud.

For dev purposes, while I run the app in the local environment and use the local MongoDB server, how these Atlas Search query will work?

I find 2 inefficient solutions.

  1. I put a flag to determine if the app is in the dev environment or production environment. But this is not an ideal solution.
  2. Each developer should use a MongoDB Atlas Free Tier for dev purposes.

Is there any better approach for MongoDB Atlas Search in the dev environment?

1

There are 1 answers

0
D. SM On

The first one is not a real solution. You need to use Atlas for development and testing.

I am unaware of any other way to obtain the equivalent functionality. The Atlas Search is proprietary.