Category "mongodb"

Casting an object within a MongoDB document to date time within a filter definition builder

I am hoping someone can help me as I am new to Mongo DB or point me to a work around, I have a property within a Mongo DB document which is of type object, but

Access mongodb replica set pod (kubernetes) through another pod AND through external sources

I'm running minikube on my local machine, and I can easily connect to my MongoDB pod from both external/internal sources through this setting below WITHOUT the

Mongodb Realm custom JWT auth causes empty custom user data

I'm working on an app that currently uses email/password auth provided by MongoDB Realm. I'm thinking of switching to using the custom JWT auth for various reas

How to solve Node mon crashing problem when connecting mongo DB using NodeJS

Node mon app crashing problem when connecting Mongo DB using Nodejs

How to remove schema validation in mongoose (mongodb)?

I have MongoDB server version: 5.0.6 installed and used "mongoose": "^6.0.14" to create a model validation. Example of model: const User = new Schema({ name:

How to check if an area intercepts with any one of other given areas

Before asking this question I read these answers, but could not find the solution: Check if coordinate is within area Geolocation - Check if a location belongs

How can I use Mongo DB's database to subtract and add a quantity from an item using the put method from a button? [closed]

what problem my code ? I actually want to reduce and increase the quantity of some items from one button but I can't understand what is wrong

FORMIO questions total newbie

I'm tryin to learn FORM.IO, I'm a total newbie and have little knowledge with Javascript or client server or cloud. I have some questions, really sorry if they

When run node js application getting error whitelist ip in mongo cluster

I have implemented node js application and used MongoDB as database using nginx to run the project Everything working fine in local but when code is published i

NextJS: load global plugin in Mongoose before model creation

I have a folder structure looking something like this root/ pages/ models/ User.js utils/ plugin.js dbConnect.js I want to be able to load th

Copy nested array into plain one when it is only empty

How do I copy one nested array (urls2.url_breed) into an empty array url_alternative only if this one is empty like in this case? There are some cases when it i

BsonSerializationException: Creator map for class has 2 arguments, but none are configured

I have a TextSearchJob object to store on MongoDB. I am rather new with the database and I don't know why I have this error with the IDictionary version (on the

In mongoose I have executed the example program given in the website but I'm getting the same error that is: TypeError: fluffy.speak is not a function

const mongoose = require('mongoose'); main().catch(err => console.log(err)); async function main() { await mongoose.connect('mongodb://localhost:27017/t

MongoDB python connection

I just upgraded my mongoDB subscription and suddenly I get this error everytime I try to connect: -shard-00-02.dlu0y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY

Index on oplog.rs

Is there any impact creating an index on oplog.rs on the following fields {"ns": 1, "op": 1, "ts": 1} to improve the query on those fields that causing a lot of

Error: Cannot init client | mongo-connect express-session

I am getting error while trying to save session on mongodb. Here is my code.. const express = require("express"); const session = require("express-session"); co

How can we report to our customers that the orders are closed in our react native app?

I am making a react native app to deliver homemade snacks by taking orders the previous day. Whenever I am not available, how can I notify my customers that I c

Why MongoDB saves Hash value in different format?

I am learning IPFS and trying to save IPFS file info in MongoDB. After uploading, I get one hash value ex: {fileHash: CID(QmbCaWPi9tSqcnykvBUMaH2M1d5PiVPLEfPwhJ

Node js SyntaxError: Unexpected token 'export'

I'm having the following error in the console when I try to run my api written in node js. Can you tell me which is the problem.

com.mongodb.MongoSocketOpenException: Exception opening socket with spring boot and mongodb cloud

Please suggest any solution for the below exception which is occuring while running my rest api while executing springboot application with mongodb cloud db. I