175,388 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
0
answers
62
views
Error: Failed to load external module mongodb-438b504308ffa4be: Error: Cannot find module 'mongodb-438b504308ffa4be' Require stack: [closed]
48790b4b ERROR ⨯ Error: Failed to load external module mongodb-438b504308ffa4be: Error: Cannot find module 'mongodb-438b504308ffa4be'
Require stack:
\- /var/task/.next/server/chunks/\[root-of-...
1
vote
1
answer
43
views
Angular 18 build error: Top-level await in bson when using @mongodb-js/charts-embed-dom
Environment:
Angular: 18.x
Node.js: 18.20.4
Package manager: pnpm (same behavior with npm)
OS: Windows
import { Component, OnInit } from '@angular/core';
import ChartsEmbedSDK from '@mongodb-js/...
0
votes
0
answers
43
views
Mongoose intermediate data saving in DB
I have a branch management system in my application where some approved requests show the processor's name (like "usernme") while others show "Legacy".
The issue
Logs always show ...
Best practices
0
votes
2
replies
71
views
what do you save as schema type of phone number in mongodb?
So i was trying to make a controller for getting all the employee data based on query and query can search through the name, role and phone number so when i try to search via phone number it gave me &...
2
votes
1
answer
53
views
MongoDB JsonSchema validator is not dynamic with $$NOW
I have a validator as follows
db.createCollection("employees",
{
validator: {
$and: [
{
$jsonSchema: {
bsonType: "object",
required: [
...
Gibbs's user avatar
- 23.1k
3
votes
3
answers
205
views
MongoSocketOpenException on startup with new project
I started a new Kotlin Spring project and want to connect to a Mongodb. I added the following to my application.properties file
server.port=3000
spring.data.mongodb.uri=mongodb+srv://MYUSERNAME:MYPW@...
1
vote
2
answers
74
views
[email protected] is shutting down immediately after launch
[email protected] is shutting down immediately after launch on MacOS Sequoia 15.7.3. I have tried completely removing and reinstalling [email protected], using the instructions here and here.
...
3
votes
1
answer
77
views
I am saving some user data but i see MongoDB duplicate key error on a field i havent declared [closed]
I'm losing my mind a bit here. I'm completing an old project of mine with Express and Mongoose with Google firebase login. Everything was working fine with my first test user, but as soon as I tried ...
0
votes
1
answer
45
views
MongoDB 7 fails to read dbPath from mongod.conf on AlmaLinux 10
I’m installing MongoDB 7 on AlmaLinux 10 using the RHEL8 tarball (mongodb-linux-x86_64-rhel8-7.0.x.tgz).
MongoDB starts but exits with error code 100, saying dbPath /data/db not found, even though I ...
Advice
0
votes
4
replies
87
views
Query MongoDB using C#
I have never queried mongoDB before using C#, usually only things like SQL Server which seem more straight forward to me. I am also not an expert in C#, so please do not beat me up. Trying to learn.
I ...
0
votes
1
answer
276
views
Intellij IDEA: Driver class 'com.dbschema.MongoJdbcDriver' is incompatible with current JRE
I was getting this error after clicking the test connection button for a MongoDB connection in the IntelliJ IDEA Database tab:
Driver class 'com.dbschema.MongoJdbcDriver' is incompatible with current ...
1
vote
1
answer
64
views
How to partially override decoding behavior using Mongo Golang Driver v2
The timeCodec in the Mongo driver throws an error when decoding doubles into time.Time fields. I'm dealing with legacy data that stores time as a double and it's impractical for me to migrate ...
0
votes
0
answers
101
views
MongoDB Atlas queries suddenly became 10–50× slower starting Nov 21 (no code changes, Vercel functions now running for seconds)
I am experiencing a sudden and severe slowdown in MongoDB Atlas query performance.
Starting exactly on Nov 21, every API route that interacts with MongoDB became ×ばつ slower.
There were no backend ...
0
votes
1
answer
89
views
MongoDB View: Merge collections with different field names using $unionWith
I am trying to merge four collections in MongoDB and create a view:
db.createView(
"manageRequest",
"claims",
[
{ $unionWith: { coll: "hr_loan" } },
{ $...
Best practices
0
votes
1
replies
74
views
How to properly structure an aggregation pipeline builder for a product catalog (filters, sorting, pagination, min/max price)?
I’m building a product catalog API using MongoDB’s aggregation pipeline.
On the Node.js side I have a TypeScript "builder" that dynamically constructs the pipeline based on filters, sorting, and ...