daily pastebin goal
29%
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top