daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //insert in array with push
  2. db.modules_features_new.update(
  3.   { state: "userEndorsement" },
  4.   {
  5.     $push: {
  6.       "features": {
  7.         "_id": "transferStudent",
  8.         "name": "Transter Student"
  9.       }
  10.     },
  11.     $currentDate: { lastModified: true }
  12.   },
  13.   { multi: true }
  14. )
RAW Paste Data
Top