Skip to main content

All Questions

2 votes
1 answer
4k views

How many databases are allowed in a single mongodb cluster?

I'm working with a system that requires multiple databases for multiple organisation. A monolithic node Js server connects to these databases. The challenge is I may have 5000 organisation. I wanted ...
Md.Reyad Hossain's user avatar
1 vote
1 answer
426 views

Delete multiple documents of a particular collection matching a criteria in RavenDB

I am trying to delete multiple documents of a particular collection meeting certain criteria. Ideally after deleting these documents I need to add new documents. Even though the new documents are ...
prasadv's user avatar
  • 73
1 vote
1 answer
61 views

Insert a nested document into a DocumentDB doc using Node.js

what's the best way to insert a nested document into the following? { "id": "3af62b94-2031-4b85-9fd3-e13e7217d382", "Email": "[email protected]", "Name": "test", "OrgRoles": null, ...
DarkW1nter's user avatar
  • 2,871
1 vote
1 answer
1k views

Executing SQL query joins on Cosmos DB using Azure Mobile Apps for Node

I'm currently developing a back end for a mobile system using Azure Mobile Apps with Node.js and Azure Cosmos DB (Document DB). I'm using the example that was given here: https://github.com/Azure/...
Ross Vernal's user avatar
0 votes
1 answer
1k views

Node js parameterized query for DocumentDB

Can anyone tell me which node module I have to require to parameterize queries for DocumentDB in Node.js? I have structured the query very similar to this Microsoft example. I am using the ...
DarkW1nter's user avatar
  • 2,871
0 votes
1 answer
1k views

CouchDB bulk delete Node.js

I am using the Cloudant node module to modify my Cloudant database. I am sending the following documents to the db.bulk(params,callback) function. { docs: [ { "_id": "...", "_rev": "...", ...
Danwakeem's user avatar
  • 358
0 votes
1 answer
92 views

Nesting and querying documents with MongoDB

I have a data structure that looks more or less like this: var city = { name: String, mayor: Person, citizens: [Person] }; I think my use case is pretty good for using MongoDB, but I have a few ...
blop's user avatar
  • 31
6 votes
0 answers
3k views

Join multiple databases with CouchDB?

Tech being used: Node.js Nano CouchDB Disclaimer: I am very new to CouchDB. I am able to query views with Node.js and Nano just fine. I am looking for more of a conceptual solution then a syntax ...
Phil's user avatar
  • 11.2k
166 votes
11 answers
144k views

Delete a key from a MongoDB document using Mongoose

I'm using the Mongoose Library for accessing MongoDB with node.js Is there a way to remove a key from a document? i.e. not just set the value to null, but remove it? User.findOne({}, function(err, ...
Daniel Beardsley's user avatar