python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Can't Filter for Value Inside Array in MongoDB Compass
I have the following record structure:
{
"_id": {
"$oid": "609224f28062c60008143024"
},
"attachments": [""],
"taggedUsers...
JayRenn
Votes: 0
Answers: 1
Can you $unwind several fields at once in MongoDB Compass?
I am doing aggregation on several documents that have a common id field using MongoDB Compass. Firstly I tried the following way:
db.data.aggregate([
$group : {
_id : "$id",
"id" :...
grigyan
Votes: 0
Answers: 2
MongoDB update - set field from nested field
I want to set a field to a value of a nested field
given
{
"_id":"myId",
"data":{
"id":"asdfasdfasdf",
"text":"Wonderful te...

DCO
Votes: 0
Answers: 1
mongocxx: How to filter documents by a field that is a member of another field/object?
In MongoDB Compass, if I filter with the following:
{'obj1.obj2.str': "thirteen"}
It retrieves successfully, every document that has obj1, and inside of obj1, obj2, and within obj2, a field ...
Yelnar Blats
Votes: 0
Answers: 1