ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Bulk Updates #7

Closed benjamine closed 6 years ago

benjamine commented 13 years ago

It would be great to have bulk update capabilities (like in CouchDB), ie:

$ DB="http://127.0.0.1:5984/tstconf"
$ curl -d '{"docs":[{"key":"baz","name":"bazzel"},{"key":"bar","name":"barry"},   {"key":"zap","_deleted":true}]}' -X POST  "$DB/_bulk_docs"

Properties on each document can indicate if it should be inserted, updated or deleted. docs could be grouped by collection, too.

The CouchDB bulk update could be used as model: http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API

adomado commented 13 years ago

Would love to see this as a feature...