Painting Blue Code
Simple, self-explanatory code snippets.
2016-02-23
Meteor - How to add a new field to all documents
db.COLLECTION-NAME.update(
// Find all documents
{}
// Set
,{
$set
:{
NEW-FIELD-NAME
:
VALUE
}
}
// Options
,{
multi : true
}
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment