Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

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.

Filter by
Sorted by
Tagged with
5 votes
1 answer
358 views

MongoDB cache decorator

I think I cooked again, but maybe not. I'll share with you the product of today's cooking: ...
Luca Bonaldo's user avatar
1 vote
0 answers
49 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 ...
Loki Astari's user avatar
  • 97.5k
3 votes
0 answers
40 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 ...
Loki Astari's user avatar
  • 97.5k
5 votes
1 answer
209 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 ...
Loki Astari's user avatar
  • 97.5k
2 votes
0 answers
25 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: ...
Loki Astari's user avatar
  • 97.5k
1 vote
0 answers
20 views

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 ...
Loki Astari's user avatar
  • 97.5k
2 votes
1 answer
53 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+...
Loki Astari's user avatar
  • 97.5k
4 votes
1 answer
94 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 ...
Loki Astari's user avatar
  • 97.5k
4 votes
2 answers
250 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 ...
Heber Alturria's user avatar
2 votes
1 answer
39 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 : ...
Jonathan's user avatar
0 votes
1 answer
82 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, ...
Nisal Edu's user avatar
  • 103
1 vote
1 answer
97 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 ...
user8758206's user avatar
1 vote
1 answer
85 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 ...
Adil15's user avatar
  • 163
2 votes
2 answers
131 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 ...
Boro8ey's user avatar
  • 23
2 votes
1 answer
123 views

Basic node login routes for authentication system

I am building a basic authentication system with a node backend and wonder whether I am using the try-catch block excessively. I have this example controller: ...
user8758206's user avatar

15 30 50 per page
1
2 3 4 5
13