Questions tagged [mongodb]
MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms.
185 questions
1
vote
0
answers
29
views
Working on HIMS SaaS using MEAN stack
I was facing an issue with changing models on the fly — since we don’t just need isolation based on string or ID, but also data-level differences for each HIMS instance. To handle this, I created a ...
0
votes
0
answers
8
views
SafeDelete for Mongodb plugin
Title: Code Review Request: Mongoose Soft Delete Plugin with Query & Aggregate Middleware
Body:
I’ve implemented a soft delete plugin for Mongoose to handle REST API data safely in a MENN stack ...
5
votes
1
answer
374
views
MongoDB cache decorator
I think I cooked again, but maybe not. I'll share with you the product of today's cooking:
...
1
vote
0
answers
65
views
Mongo Rest Server
Using the server architecture to provide a REST interface. So I can send/recieve JSON that is put/retrieved from a mongo server.
The Fir class MongoRest is similar ...
3
votes
0
answers
53
views
Mongo C++ Driver: Insert
This update is based on a previous review where I tried creating a WriteConfig and a WriteConfigBuilder. I have updated this so ...
5
votes
1
answer
234
views
Mongo Queries In C++
The mongo API uses documents (encoded in BSON) as the way to perform queryies (for find / remove etc).
For example a query to find all record where the name field ...
2
votes
0
answers
41
views
C++ Mongo Interface : Version-2 Implementation of ScramSha Authentication
Refactored part of the original code:
c++ Mongo Interface
Implementation of ScramSha-256 for Mongo server to be used with the Authenticate class.
Example of Usage:
...
2
votes
1
answer
68
views
C++ Mongo Interface : Version-2 Op_Msg
Refactored part of the original code:
c++ Mongo Interface
This review is looking only at the "Op_MSG()" functions. These functions are used to read/write standard C++ objects to Mongo. The C+...
4
votes
1
answer
120
views
c++ Mongo Interface
This questions needs some set up.
I have some code that serializes C++ objects into JSON/YAML/BSON.
Code here review here.
Simply you can serialize and de-serialize C++ objects to a ...
4
votes
2
answers
271
views
Connecting MongoDB using Motor in FastAPI
What are the best practices for connecting to a database in FastAPI?
To provide some context, I want to write code to connect to a MongoDB database using Motor. My idea is to create a single ...
2
votes
1
answer
59
views
Do you think it's a good schema.prisma?
i'm trying to learn backend with Next JS, and i'm using Prisma + MongoDB. I want to create a simple website with a user with a cart and some products. here my schema :
...
0
votes
1
answer
104
views
I have use this approch in my golang mongo REST APIs' DAO layer, need to clarify this is a good way or not
I have used this approach in my Golang MongoDB REST APIs' DAO layer, I need to clarify whether this is a good way or not, code is as follows,
...
1
vote
1
answer
134
views
Optimising a simple graphql mutation resolver
I am writing a resolver for a typical updateUser mutation with node, Apollo Server and mongoDB. I want to make it such that, when the ...
1
vote
1
answer
106
views
Pulling images from a MongoDb database
I have a method that on click produces an excel file with information in it. I have been asked to pull images from the data base and add them within the excel file as well. This is how I am pulling ...
2
votes
2
answers
159
views
Change interface depending on if statement
I'm using fiber and mongodb. Field "field" is needed to obtain certain data to unload the load on the database. If field "field" is empty, then needs to output all the data from ...