Skip to content

Commit

Permalink
Another mongo snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoleRauch committed Apr 28, 2015
1 parent 3849507 commit b7eb5c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev-goodies/mongo snippets.txt
Expand Up @@ -16,5 +16,8 @@ db.activitystore.update({url: "socrates-2015"}, {$pull: {"resources.junior._wait
-- rename a collection
db.participantstore.renameCollection( "subscriberstore" )

-- delete the participations of a member whose id matches /git/
-- delete the participations of a subscriber whose id matches /git/
db.subscriberstore.update({id: /git/}, {$unset: {"participations": "" }})

-- delete the payment-received-notification of a member whose id matches /xlogon/
db.subscriberstore.update({id: /xlogon/}, {$unset: {"participations.2015.payment.paymentReceived": "" }})

0 comments on commit b7eb5c4

Please sign in to comment.