Category "mongodb"

Mongodb: Text Indexes vs Atlas Search

These two features look pretty simmilar, but Atlas Search is fresh and maybe more powerfull. Is Atlas Search a replacement for Text Indexes in MongoDb? Will Tex

Cannot connect to MongoDB Atlas despite allowing all IP address to access

I am unable to access MongoDB database for some reason. I have run through the usual suspects such as removing <> brackets around the password and also ma

Unable to connect MongoDB server?

I have tried to connect to MongoDB server using the below-mentioned link but I am getting an error, I have entered the correct password and dbName but it couldn

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. Why?

I am having a issue while saving the image file in MognoDB. It is saying the error (node:14849) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]

Using stream in mongodb is very slow

I am using the nodejs driver and the collection has ~45k documents, the query returns ~3k documents, but its almost taking 30seconds to iterate. The batch size

How to have class-transform converting properly the _id of a mongoDb class?

I've the following mongoDb class: @Schema() export class Poker { @Transform(({ value }) => value.toString()) _id: ObjectId; @Prop() title: string;

Query by an element of an array of objects using C# driver

I have objects like this sample in my database: { "_id" : ObjectId("62623cd94c111e4e73c98e88"), "CDate" : null, "CUser" : "dexadminserver",

Query by an element of an array of objects using C# driver

I have objects like this sample in my database: { "_id" : ObjectId("62623cd94c111e4e73c98e88"), "CDate" : null, "CUser" : "dexadminserver",

MongoDB: Find an object by its ID without knowing the collection

I have an mongodb databse with 100+ collections. I'm trying to find an object, with a known ObjectID, that belongs to some (unknown) collection of this database

spring mongodb: arrayFilters is absent

I need to build an update operation like this: db.collection.update({ "referencedGeneralPractitioner.id": "id1" }, { $set: { "referencedGeneralPractitio

Mongoose.js not removing object from array

I'm using Mongoose with my Discord bot and I'm making the feature where the infractions can be removed from any mentioned user(s). The infractions are saved in

Cannot create property 'ignore_whitespace' on string ' '

const Validator = require("validator"); const isEmpty = require("../validation/is-empty"); module.exports = function validateRegisterInput(data) { let errors

Mongoimport error: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field

I am trying to import some json files to mongodb collections using following command on a server other than mongodb server: mongoimport --host IP --port 27017 -

Merge two array objects together in Mongodb from $Lookup

I have two Mongodb 3.6 collections where one references another as an example data below where certs.$Entities.Id: entities._id: certs: { _id: ObjectId('x

Pyspark Fetching MongoDB records using MongoConnector and Where Clause

I'm trying to read MongoDB using this guide df = spark.read.format("com.mongodb.spark.sql.DefaultSource").load() df = df.select(['my_cols']) df = df.where('date

Express module.js:550 throw err; ^ Cannot find module

I'm trying to initialize a simple express app with the following code: const express = require('express'); const app = express() const bodyParser = require('bo

How to implement Pagination with Ktor and Kmongo

Problem: To Implement Pagination on the server side using Ktor and Kmongo. Tech Stacks: Kotlin as Programming Language. Ktor as Web Framework. MongoDb as databa

Django with NoSQL database

I am working with an Django application which uses Django 1.8 version. Most of the data we deal with is JSON formatted ones. We are trying to implement any No

Problem while rs.initiate() for setup docker-compose for replica set

I want to setup MongoDB replica set with docker-compose with only one node. This is my docker-compose.yml file: version: '3.7' services: mongodb1: image

Express js,mongodb: “ReferenceError: db is not defined” when calling a function

The code is set up this way: var express = require('express'); var router = express.Router(); var mongo = require('mongodb').MongoClient; function getData(){