python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Find duplicate values inside an array of objects in MongoDB in single record
I'm new to making queries in Mongo. I have this single record and I need to find the sections with the same link.
My record:
{
"_id" : ObjectId("1234"),
"name": &...
Juan Manuel
Votes: 0
Answers: 2
mongodb querying next N documents
In Mongodb, is it possible to query the next N documents?
i.e
collection.find({ 'temperature': 1.0 }).sort("datetime", 1).next({ [ 'temperature': 1.1, 'temperature': 1.2 ] }, 2)
query would...
povici
Votes: 0
Answers: 0
Add pipeline stage in the arguments of another pipeline - MongoDB
Is it possible to add a pipeline to the arguments of another pipeline in mongodb?
An example of the current result that I am getting:
MongoPlayground
Is it possible to project the emp table to only na...
Muhammad Bilal
Votes: 0
Answers: 1
mongodb aggregation optimization: $sort and $group
For simple, I have a document like this:
name
weight_1
weight_2
aaaa
1
5
bbbb
4
4
cccc
2
3
bbbb
3
2
cccc
5
1
My goal is to output a list and sort by weight_2 asc. If there are more...
user15963491
Votes: 0
Answers: 0