Searching on an embedded field together with a non-embedded field in an Atlas...
I have a document with a structure like this:{"_id": "","title": "Todo Demo","todos": [ {"todo": "Travel to France","isCompleted": false, }, {"todo": "Send money to rome","isCompleted": false, },...
View ArticleMERN+gql project; Heroku deployment build failing at install script because...
In the process of converting a project using a mysql db and an express server into one with the same concept (a free online game search application) but in a MERN+gql framework. After creating my gql...
View ArticleWriting to a collection in MongoDB Atlas with JS server code
I need to rebuild the JS (server) code to write to a DB collection in MongoDB Atlas.Since I am encountering some problems on the way, I decided to write this post and see if someone could give me some...
View ArticleReceive DEP0170 when connecting MongoDB Atlas with Node.js 20.3.1
Recently I updated Node.js to version 20.3.1 and tried to connect my MongoDB Atlas. When my Node.js's version is 19.X, the connection of Atlas is normal. However, The terminal shows the deprecation...
View ArticleProblem with deploying my app with Render, MongoDB doesn't recognize and...
MongooseServerSelectionError Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure...
View ArticleBlocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on...
I am trying to fetch data from a flask server that I created, but it seems to give me the CORS error and is not working.@app.route('/api/data', methods=['GET', 'OPTIONS'])def get_data(): if...
View ArticleHow to query MongoDB aggregate with collation option
I created a "brands" collection and then added an index collation: { locale: "en", strength: 2} on the "title" field. But when I try to query it using this collation it doesn't work as expected:const...
View ArticleMongoDb to AWS Quicksight
My current Database size is of around ~2 GB and it is increasing day by day. I have a requirement to integrate it with BI service to give clear insights of the data to the stakeholders.Is it possible...
View ArticleBeanie raise RevisionIdWasChanged in python
I'm using mongodb-atlas(cloud version) and fastAPI for learning to create backend API.I created this router post that will create users. I tried to raise an exception when trying to create an email...
View Article'No write concern mode named 'majority`' found in replica set configuration'...
I'm trying to insert an object into mongodb via a POST request. The object that I send gets inserted in the db successfully, however I get the error mentioned above.The package I'm using for mongo...
View ArticleMongoDB Altas Auto-Increment fields with Trigger unknown: Unexpected reserved...
I want to implement auto-incremented fields with MongoDB Atlas triggers. However, by following the instruction from official MongoDB website. I still face an error > error: unknown: Unexpected...
View ArticleMongo DB atlas not returning any data When called from redash
I have used Redash and am able to connect to the mongo db atlas. When I execute any query, I get 0 rows returned. I have confirmed that data is present in those collections.I have used the below link...
View ArticleHow to setup and configure mongodb kafka soruce connector using aws msk connect?
I have setup a MSK cluster using public subnets. I also have turned on public access for this MSK cluster. The cluster is up and running. I am trying to setup MongoDB Kafka Source Connector using MSK...
View ArticleMeteorJS Oplog: Got exception while polling query MongoError: no primary...
we needed to duplicate a legacy meteorJS app recently, onto a new server and a new database.So we cloned the server, created a new database and pointed the cloned server to the new database.The...
View ArticleMongoWriteConcernError: No write concern mode named 'majority;' found in...
I am using createTask function to insert the document in mongodb atlas , the document is getting saved in atlas but catch part is also working and hence res.send after inserting document is not...
View ArticleMongoDB Charts JWT authentication issue: JWT providers not matching error
I'm encountering an issue with MongoDB Charts when using JWT authentication. The charts render properly initially, but when the current token expires and a new token is generated, the chart fails to...
View ArticleTrouble Connecting Elasticsearch Connector to MongoDB Atlas with...
Stack Overflow community!I'm currently working on integrating Elasticsearch with MongoDB Atlas using an Elasticsearch connector and have encountered a connectivity issue that I'm unable to resolve. I'm...
View ArticleIntegrate Liquibase with GitLab to version and automate changes for MongoDB...
We have 8 Atlas clusters that have been deployed. We want to automate creating indexes and deploying database changes (such as updates and deletions) using release. We track our changes in Gitlab, and...
View ArticleCreate a docker image of the mongoDB- atlas version
Hello I want to containarize my flask app and my mongo annd connect them. I have already containerize the flask app.my current code:Dockerfile for flask containerFROM python:3.8-busterWORKDIR...
View ArticleMongoDB Projection with VectorSearch
I am trying to perform a vector search on a collection and map the results into a custom object that contains only some of the properties in the collection along with the vector score. I have managed...
View Article