Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mongodb Query

Find A Document Based On A Reference To The Parent In The Child

There are 2 collections Movie and Rank Movie .This 2 collections having referenced relationship . … Read more Find A Document Based On A Reference To The Parent In The Child

Collect Distinct Field Names At Nested Level With Specific Condition

I have problem statement, in which i need all the field names at child level of 'config.first.… Read more Collect Distinct Field Names At Nested Level With Specific Condition

How To Update Multiple Fields Of An Array Object With One Request?

{ _id:xxxxstoreid store:{ products:[ { _id:xxxproductid,… Read more How To Update Multiple Fields Of An Array Object With One Request?

Updating A Nested Array With Mongodb

I am trying to update a value in the nested array but can't get it to work. My object is like t… Read more Updating A Nested Array With Mongodb

Possible To Compare Date Strings In Mongodb?

I have a collection that contains documents with a date attribute like so: { title: 'whateve… Read more Possible To Compare Date Strings In Mongodb?

Toggle Boolean Value Of Subdocuments

i am trying to toggle the boolean value inside an array which is a collection of objects, problem i… Read more Toggle Boolean Value Of Subdocuments

$addtoset To An Array But It Gives Me Null

so basically I've a wish list and I've bunch of products that I want to add inside the the … Read more $addtoset To An Array But It Gives Me Null

Query On Date For Posts Created The Last 24h

I have this schema with a date for the field 'created_at': var post = new mongoose.Schema({… Read more Query On Date For Posts Created The Last 24h