Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Unable to trigger dynamically created pipelines in airflow DAG

I have a DAG file to load data from mongodb to bigquery. I have tested my apache beam pipeline individually but when i am trying to trigger it dynamically to do parallel processing of all collections ...
Ajay Kumar's user avatar
-1 votes
0 answers
24 views

Dynamic scheduling using scheduleconfigure in spring

Does the above approach support a single trigger—with the year, it will have seven fields—and also support recurring triggers?
Pooja Devops's user avatar
0 votes
0 answers
18 views

How does Express/Passport detect when a session is manually deleted from MongoDB without calling sessionStore.get()?

I'm using express-session with connect-mongo as the session store in my Node.js server. I’ve added console logs to the session store methods to trace calls to .get(), .set(), .touch(), and .destroy() ...
Mukul bhardwaj's user avatar
-1 votes
0 answers
22 views

MongoDB won't start after reboot — requires reinstall to work [closed]

I'm having an issue with MongoDB where it doesn't start properly. After I install MongoDB, it works fine. But if I shut down my PC and turn it back on, MongoDB won't start anymore. I have to reinstall ...
GeloDev's user avatar
0 votes
1 answer
140 views

How can I optimize my 'foreach' loop to read and process each line of a text file more efficiently in C#?

I have C# code that reads a .TXT file, processes each line, and subsequently inserts documents into a MongoDB database. Since the file contains many lines (approximately 70k), both reading all lines ...
evomoreira's user avatar
0 votes
0 answers
30 views

Network issue in Cloud Run Service

I have a Cloud Run service that does the following: Starts a change stream for a monogdb collection Batches the changes and publsihes them to pubsub every 1 second Stores resume token every 5 minutes ...
SAR_90's user avatar
  • 71
0 votes
1 answer
53 views

HMAC keys in system.keys collection and HMAC key monitoring thread

In Mongodb PSSSA (1 primary, 3 secondary, 1 arbiter) deployments when 2 secondary DB’s go down and only PSA is present. when the primary mongo db is restart few times , all database queries start to ...
sakthivel C's user avatar
0 votes
0 answers
37 views

Fetch Record from MongoDB in descending order?

Not able to sort the documents in descending order on last updated time stamp if the documents having the January and February records. how to get the documents in descending order Query query= new ...
Anuja Patil's user avatar
-2 votes
1 answer
48 views

why my login form is not working while the sign up form is working [closed]

I have my user authentication in the same file on my react app, now the user registration is working when a user is creating an account but when the user is trying to login using the same details that ...
user23352247's user avatar
-4 votes
1 answer
32 views

Why is my DELETE Blog API returning "Blog not found" when I try to delete a blog with a reference to a User? [closed]

I am working on a REST API where I am trying to delete a blog document from my MongoDB database. Everything works fine, and the blog is deleted when I don't have a reference to a User in the blog ...
Harsh Mishra's user avatar
0 votes
0 answers
18 views

Converting Beanie Document Types

I'm trying to get used to Beanie with Mongodb. The Problem that I'm running into is this: I cannot convert Documents of different types while retaining the revision_id. The necessary sample code: ...
AliSot 2000's user avatar
0 votes
0 answers
17 views

Mongo DB Install in Namecheap VPS server [closed]

How to install mongodb in Namecheap VPS server? I am getting an error using Node.js and Prisma ORM: root@server1:~# sudo systemctl status mongod × mongod.service - MongoDB Database Server Loaded: ...
Ruhul Amin's user avatar
0 votes
2 answers
41 views

auth mechnism failing in mongodb

while starting from mongod.conf using below entry mongod not running throwing error: mongod.service : main process exited, code=exited, status=2/INVALIDARGUMENT IN MONGD.CONF: when commenting ...
prat_86's user avatar
  • 91
0 votes
0 answers
36 views

Mongodb atlas local in docker stopped working because of security keys

I'm running mongodb/mongodb-atlas-local in Docker, I got the docker-compose from here. It used to work, but it suddenly stopped. I tried deleting every images and volumes and rebuild it but nothing ...
François MENTEC's user avatar
0 votes
1 answer
51 views

Connect to your Dockerized MongoDB with transactions enabled

When I activate transactions on my MongoDB database, which is Dockerized (for local development and tests purpose), I can't connect to it any more, I get an error in the console from my NestJS app. ...
Steeven Delucis's user avatar
0 votes
0 answers
34 views

ormdata should be a multidict-type wrapper that supports the 'getlist' method [closed]

form_data = dict(request.form) form = HomeworkForm(form_data) if not form.validate(): return {"JOB":"Error", "errors": form.errors}, 400 homework = { "...
sadra rezaeiR2014's user avatar
0 votes
0 answers
36 views

Using pytest and mongoengine, data is created in the main database instead of a test one

I've installed these packages: python -m pip install pytest pytest-django And created a fixture: # core/services/tests/fixtures/checkout.py import pytest from bson import ObjectId from datetime ...
Amir Shabani's user avatar
  • 4,267
-3 votes
0 answers
38 views

Not able to run server [closed]

PS C:\Users\HP\Desktop\CODING\Gigx\Project_001\project1_Frontend> npm run start [email protected] start react-scripts start (node:2456) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning:...
Madhusudan Anjana's user avatar
-2 votes
0 answers
40 views

How to join three collections with pagination and shared filters (under 2s response time)? [closed]

I'm working on a MongoDB query where I need to join data from three collections and apply filtering and pagination across all of them. Here's what I'm trying to achieve: Join data from three ...
Deenathayalan's user avatar
1 vote
1 answer
60 views

C# .NET Core Identity with Mongo DB GUID Representation Mode issue

I am trying to use .NET's Core Identity, but via MongoDB instead SQL Server. I found a NuGet package that seems to fit the bill, but when I attempt to use it I get the following error: System....
Age of Empires's user avatar
1 vote
0 answers
33 views

Issues when checking documents in embedded test flapdoodle mongodb

I am developing a project and I am now creating junits for parts of my code where I use a mongo DB connection. On my actual DB it works fine but I am trying to set up an embedded DB to run my tests on ...
Luís Casqueiro's user avatar
-4 votes
0 answers
40 views

How to reference and sync a Mongodb Collection [closed]

I am trying to develop A MERN Stack project which has a database which has following structure: It will have multiple frameworks and each Framework will have multiple principles and each principle can ...
Fuaad's user avatar
  • 442
0 votes
1 answer
74 views

How do associate created documents with a user using Passport JWT in a MERN app?

I'm building a MERN stack application where users can create travel logs. I'm using Passport JWT for authentication. When a user creates a travel log, I want it to be automatically associated with ...
Anjay P.P's user avatar
0 votes
0 answers
42 views

Problem storing user in database using Clerk webhooks

I have installed ngrok, added my signing secret key to my .env file and deployed my app online. I can view posts on my database with this domain https://400a-78-135-249-138.ngrok-free.app/posts But ...
paul allen's user avatar
0 votes
0 answers
26 views

How to create generic types in a mongoose schema

I'm trying to create a nest Schema for mongoose that uses typescript's generic types. The goal here is to restrict my database with a few types (everything will be validated with Joi or equivalent, ...
Krigan's user avatar
  • 31
0 votes
0 answers
44 views

upload image to mongo db from .ejs form on restfull API

I'm working on this API to make the upload of an image to MongoDB and I receive a 404 status with the massage "not found". My API have been build in a modular architecture, so I have many ...
BoulayM's user avatar
0 votes
1 answer
39 views

What is the best way to create a user in mongodb?

async create(user: User): Promise<void> { const result = await this.db.createCollection("user"); await result.insertOne({...}); } I create a collection with every create ...
ali's user avatar
  • 78
0 votes
0 answers
28 views

How can I create the same services in two different Docker Compose files so that if one is already running, the other won't try to start it again?

A few days ago, I was given a task to create one Node.js server and one .NET Core server that would communicate with each other and connect to the same MongoDB server. I need to run them in Docker, ...
Amirrr's user avatar
  • 1
0 votes
0 answers
17 views

How can I implement fast phonetic search (Double Metaphone) with MongoDB without loading all records in memory?

I implemented a phonetic search in Groovy using the Double Metaphone algorithm combined with Levenshtein distance to match names that sound similar or have minor spelling variations. The logic works ...
Amit Kumar's user avatar
0 votes
0 answers
23 views

Trying to understand db.Stats() for mongodb

I'm trying to manage disk space usage for my mongodb using WiredTiger. So far I have understood that when you delete documents from mongodb, WiredTiger doesn't give the acquired free space back to the ...
TheDude's user avatar
  • 1,355
0 votes
0 answers
16 views

Set key for data from MongoDB Source connector

I am using Kafka Connect with MongoDB source connector to stream data from my mongodb to kafka. However currently data is being streamed back into kafka with no key set. How can I set a key from the ...
Nicola Picarella's user avatar
0 votes
0 answers
20 views

Stream data from MongoDB in order using Kafka Connect

I am using Kafka Connect with MongoDB Source connector. I need to stream data from my database ordered by a date field which is present in all my collections. Is there any way to stream data from ...
Nicola Picarella's user avatar
0 votes
1 answer
29 views

Database contains embedded objects, but MongoRepository returns empty List

@Document("scenarios") public class Scenario { @Id private String id; @Indexed(unique = true) private String name; private String description; @JsonSerialize(using = ...
B Sheely's user avatar
0 votes
0 answers
31 views

Reactive Spring and Reactive mongo, second save sometimes executed sometimes not

could someone help me to understand why this is happening: Tech stack: spring boot 3, java 21, reactive spring, mongo Let's say we have object like this: public class User { private Long id; ...
SavaN22's user avatar
0 votes
0 answers
64 views

mongodb $graphlookup aggregation directory hierarcgy with DBRef field

I need to collect directory hierarchy that contains parent directory as DBRef field. I tried the following aggregation: { from: 'directory', startWith: '$parentDirectory', connectFromField: '...
Papp Zoltán's user avatar
0 votes
0 answers
38 views

how to check if the document id isn't wrong in case of dynamically created models/collections?

I want to create a middleware function to check if the document_Id exists and it's not wrong using Model.exist({_id: id}) or such a query, so the API throws an error. However, the problem is my models/...
Marya's user avatar
  • 172
0 votes
1 answer
40 views

MongoDB certificates cannot be applied in Docker due to access denied error

I've recently ran into an issue while running a Docker container on my Raspberry Pi with arm64v8/mongo. I needed certificates to be signed on the Docker container, but when it runs it instantly ...
DeveloLongScript's user avatar
0 votes
0 answers
26 views

MongoDB connecting on localhost but not on Render app

I'm creating a forum for my physics engine website so that people can share their saves with everyone. It works on localhost with MongoDB, but when I upload it to Render, I get an error that says, ...
Ethan Garcia's user avatar
0 votes
1 answer
66 views

MongoDB: Establishing a connection is SUPER slow

uri = f"mongodb+srv://username:[email protected]/?appName=ClusterX" client = MongoClient(uri, server_api=ServerApi('1')) #until here it takes 25 seconds db = client....
iamnomadgg's user avatar
2 votes
1 answer
48 views

Backward Compatible Mongo fields using C# and .NET

I have the following class which represents an entity in a MongoDB database: public class Profile { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } = null!; ...
chris's user avatar
  • 2,862
-1 votes
1 answer
48 views

mongodb aggregate a hierarchy to string in spring boot

Is there any simple solution to build a directiry path string from a hierarchy with aggregation in SpringBoot and MongoDB? Directory.java looks like @Getter @Setter @EqualsAndHashCode @Document public ...
Papp Zoltán's user avatar
0 votes
0 answers
28 views

MongoDB Java Driver returns all documents instead of matching filter in Java Servlet

I'm building an Expense Tracker web app using Java Servlets and MongoDB. I want to filter expense documents based on user and category (e.g., user: "chir", category: "education"). ...
CHIRSMITA THAKUR's user avatar
0 votes
0 answers
22 views

Test tries to connect localhost instead of using embedded mongodb by @DataMongoTest

I have spring app which uses mongoRepository. I want to have an integration to test my repository by using @DataMongoTest. For some reason my test tries to connect localhost for mongo and gets timeout....
user1474111's user avatar
  • 1,526
-1 votes
0 answers
34 views

Quarkus: Question about modify a PanacheMongoEntity and a PanacheSqlEntity in the same method with @transactional

in our project we use both mongodb and postgres for different purpose. Currently we don't have the situation that we need to modify both a mongoEntity and a sqlEntity in the same method marked with @...
Fangsheng Gu's user avatar
1 vote
1 answer
40 views

How To Find Document With Child Array Where Child Has An Id

I hope someone can help. I have inherited a project using an atlas mongo db. I has been asked to get data from a collection. Assume documents are structured in the collection like this: { _id: '...
Orion's user avatar
  • 133
0 votes
2 answers
59 views

mocking mongo transactions in golang

I have been running into some issues when writing a few units tests. When the method has a transaction it just hangs and eventually times outs. I have been trying to figure how I can mock the ...
Mike3355's user avatar
  • 12.1k
0 votes
0 answers
17 views

How many different cache files with unstable_cache() Next.js can handle?

In my Next.js application, I have specific data provided by users, that get stored in a MongoDB instance. This data doesn't change until the user make any change, so for me it makes sense to cache ...
VdfX89's user avatar
  • 83
0 votes
1 answer
40 views

mongo add new properties instead of overwriting existing ones if using dot notation and arrays

i have a mongodb with documents containing a list of "pages", as sub-documents, like { pages: [ { a:1, b: "foo"}, { a:2, b: "bar"}, ] } now i want to update the ...
A. Rabus's user avatar
  • 529
0 votes
0 answers
25 views

"Query Targeting: Scanned Objects / Returned" Exceeding 1000 – How to Fix?

I'm using MongoDB Atlas and noticed a warning in the Performance Advisor and monitoring dashboard: "Query Targeting: Scanned Objects / Returned" has gone above 1000 From my understanding, ...
Annamalai's user avatar
  • 135
2 votes
1 answer
52 views

Mongodb & mongoose :: Cannot call create() with a session and multiple documents unless ordered: true is set

I’m using [email protected] with [email protected]. I’m trying to use the create() method in Mongoose along with a session for transaction support. However, when I try to insert multiple documents, I get ...
Leo_code's user avatar

1
2 3 4 5
3517