User authentication/authorization with Heroku / MongoDB Atlas
I have a Next.JS app running on Heroku with MongoDB Atlas.I need to have a user login system within it.Is there a standard and best practice way of doing in this case, to create a user authentication...
View Articlei'm trying to fetch data from mongodb atlas collection and display it in...
I've made a server.js in my npx cra project that's connecting to atlas cluster and formatting the received data using a schema.The data is about solar generation data I've downloaded from kaggle and...
View ArticleParameter 'servers' Connection Problem Cross Platform
How can we solve this problem"System.ArgumentOutOfRangeException: 'List of configured name servers must not be empty. (Parameter 'servers')'"I tried test connection our Collections but I couldn't:const...
View ArticleVercel: Task timed out after 10.01 seconds
I recently deployed a Next.js application for a software engineering boot camp. I am using Vercel for hosting the web app. The problem I am having has been spoken about on the internet before. However,...
View ArticleBest approach for implementing high-performance autocomplete with MongoDB...
I’m building a hotel search feature with an autocomplete field where users can search for destinations and hotels. Our MongoDB collection has over 200K records, hosted on MongoDB Atlas, but we’re...
View Articledon't know what to do with file "/root/livedb/filename.metadata.json.gz",...
I have taken mongodb dump from atlas mongo db and restore to AWS document DB.When i am restore to document db getting below errordon't know what to do with file...
View ArticleMongoDB Atlas cannot be connected from WSL2 Node js
I'm Using Ubuntu on WSL2. Following error is shown when i try to connect to mongoDB atlas using mongoose. It can connect from windows successfully but doesn't do so from WSL2.> mernapp@1.0.0 dev>...
View ArticleInitializing RAG using vectorstore without duplicates
I am creating a small application using spring-ai with mongodb-atlas (local docker container) to store the RAG data.I want to "seed" the mongoDB with some content on the service start. The content is a...
View ArticleHow to calculate embedding vectors using the OpenAI API for MongoDB vector...
I am trying to follow the example from the official MongoDB documentation.It mentioned that the search vector was based on the string "historical heist" using the OpenAI text-embedding-ada-002 model....
View ArticleLuxon - Invalid DateTime when using setZone on Mongo Atlas trigger
I've been struggling for some time to get setZone to work using the luxon library on a Mongo Atlas trigger. It's been a real nightmare. I have downgraded and upgraded versions of luxon in Atlas without...
View ArticleNoClassDefFoundError while trying to connect Java to Mongodb Atlas
I'm trying to connect to MongoDB atlas using Java and I'm getting the following error:Exception in thread "main" java.lang.NoClassDefFoundError: com/mongodb/internal/connection/StreamFactoryHelper at...
View ArticleMongo DB Atlas and database [closed]
How to delete a collection named "test" that Mongo has created by default?I have created an unnamed collection and Mongo has created one called "test".
View ArticleMongooseServerSelectionError: Could not connect to any servers in your MongoDB
Hi I am making a booking system following the youtube tutorial tutorial linkAnd I have made app.js file to be like(shown below):const express = require('express');const bodyParser =...
View ArticleVercel creates new DB connection for every request
I'm working on a new website, and although things were working well as we developed locally we've run into an issue when we tried to deploy on Vercel. The app uses the Sapper framework for both the...
View ArticleWhy "pre" function is mostly used with userSchema while using bcryptjs?
I have mostly seen "pre" function to be used as userSchema.pre('save', async function(){..}) while using bcrypt in express. I know it is a middleware, runs before .save() function to encrypt password...
View ArticlePyMongo [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to...
I'm using Python 3.9.5 and PyMongo 3.11.4. The version of my MongoDB database is 4.4.6. I'm using Windows 8.1I'm learning MongoDB and I have a cluster set up in Atlas that I connect to. Whenever I try...
View ArticleHow to repair a down node in MongoDB Atlas?
I have a M10 replica set on MongoDB atlas under MongoDB 8 and one of the nodes is currently down since more than the 24 hours oplog window.I have now this message “We are deploying your changes: 0 of 1...
View ArticlemongoDB $lookup with $search pipeline
I have two collections:store_group collection: {"_id": ObjectId("674fe7cc4e65df54a0db23b5"),"stores": [ {"id": 101, "name":"abc"}, // 101 as int {"id": 204, "name":"cd"} // 204 as int...
View ArticleHow to create search index for an attribute and query it which has nested...
I want to create an index on qualityConfirmations attribute and query it. As qualityConfirmations has dynamic fields at the root level for eg. 228, 234, and inside that I need to query for...
View ArticleMongodb + Atlas: 'bad auth Authentication failed.', code: 8000,
I've tried this and it's not working.I have the following error with Mongodb + Atlas:MongoError: bad auth Authentication failed. at /Users/cyrus/Documents/Code/01....
View Article