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

Update Object With Given Id Embed In Array Without Restructuring Mongo Database

I've got the following document named 'clients' which includes id, name and list of pro… Read more Update Object With Given Id Embed In Array Without Restructuring Mongo Database

Is It Possible To Use Query Projection On The Same Collection That Has A $elemmatch Projection?

I understand that you can limit the items in a subcollection array using $elemMatch as a projection… Read more Is It Possible To Use Query Projection On The Same Collection That Has A $elemmatch Projection?

Error Syntaxerror: Unexpected Token < In Json At Position 0

ERROR: core.es5.js?0445:1084 ERROR SyntaxError: Unexpected token SITUATION: What I am trying to … Read more Error Syntaxerror: Unexpected Token < In Json At Position 0

How To Connect Mongodb To Angular2 App?

I have angular2 & mongoDB configured. So far I am able to read json files using http service bu… Read more How To Connect Mongodb To Angular2 App?

Mongodb - Insert Into Two Collections, One Collection Referencing The Other As Subdocument

New to Meteor and MongoDB, coming from a relational database background. This question actually ref… Read more Mongodb - Insert Into Two Collections, One Collection Referencing The Other As Subdocument

How To Pass Argument To Mongo Script

I've been using mongo and script files like this: $ mongo getSimilar.js I would like to pass a… Read more How To Pass Argument To Mongo Script

Nodejs Mongodb Dynamic Collection Name

I have several mongodb collections, Fruits: [ {}, {}, {} ...], Bread: [{}, {}, {} ...] I want t… Read more Nodejs Mongodb Dynamic Collection Name

Closing Mongodb Connection In Node.js While Inserting Lot Of Data

I am trying write a program to parse and insert iis logs data in to mongodb. The files aren't t… Read more Closing Mongodb Connection In Node.js While Inserting Lot Of Data

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

Update Many In Mongoose

I have a very simple case. I want to update my collection every midnight. Im using node-schedule: s… Read more Update Many In Mongoose

Finding Closest Points To A Certain Point Given Its Coordinates And Maximum Distance - Query Result Undefined Using Mongoose With Mean Stack

I've an issue that I wasn't able to solve in some days, even looking at related Stack Overf… Read more Finding Closest Points To A Certain Point Given Its Coordinates And Maximum Distance - Query Result Undefined Using Mongoose With Mean Stack

Removing Object With Objectid From Array In Mongoose/mongodb

How do I go into the _carts array and delete the object with _id of '1'?? Also, am I using … Read more Removing Object With Objectid From Array In Mongoose/mongodb

Time Series And Aggregation Framework (mongo)

I'm trying to synchronise two functions I run in my app. First one checks the count of the docu… Read more Time Series And Aggregation Framework (mongo)

Update Database Entry Using Mongoose

Hello i am using mongoose. I have built this query that finds my desired project : const projects =… Read more Update Database Entry Using Mongoose

Check If Document Already Exists And If Yes Then Update, Otherwise Create New - Mongoose

I have app where I am trying to check whether a document with the users ID already exists, if yes t… Read more Check If Document Already Exists And If Yes Then Update, Otherwise Create New - Mongoose

How To Post Data To Mongo Collection Using Mean Stack?

I have a object that contains firstname and lastname from client it is printing in client factory s… Read more How To Post Data To Mongo Collection Using Mean Stack?

How To Load Multiple Js Files To Database Using Mongo Shell?

I have several js files with collections creations and seeds. I load data from one of them using, f… Read more How To Load Multiple Js Files To Database Using Mongo Shell?

Insert Array In Existing Document

I have a document like this: _id: ObjectId('559c1d2ad8291bc9368b4568') tablename: 'IWE… Read more Insert Array In Existing Document

How To Create Dynamic Document Keys In Mongodb

My problem consists of creating a collection with dynamic fields and undefined names which should b… Read more How To Create Dynamic Document Keys In Mongodb

Mongoose - Version Error: No Matching Document Found For Id

Context: I have a Post Mongoose model that contains a csv_files array field to store csv strings. I… Read more Mongoose - Version Error: No Matching Document Found For Id