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
5votes
1answer
348views
MongoDB cache decorator
I think I cooked again, but maybe not. I'll share with you the product of today's cooking: ...
1vote
0answers
49views
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 ...
3votes
0answers
40views
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 ...
5votes
1answer
209views
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 ...
2votes
0answers
25views
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: ...
1vote
0answers
17views
C++ Mongo Interface : Version-2 Authentication
Refactored part of the original code: c++ Mongo Interface In the original code I had put the authentication in the constructor of the socket stream. This made it hard to unit test. So I have ...
2votes
1answer
45views
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+...
0votes
0answers
24views
C++ Mongo Interface : Version-2 ConnectionBufferMongo
Refactored part of the original code: c++ Mongo Interface This review is looking only at the "ConnectionBufferMongo" class. This is derived from "ThorsSocket::SocketStreamBuffer" ...
4votes
1answer
91views
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 ...
4votes
2answers
239views
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 ...
2votes
1answer
39views
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 : ...
0votes
1answer
77views
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, ...
1vote
1answer
93views
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 ...
1vote
1answer
79views
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 ...
2votes
2answers
124views
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 ...