show dbs
use <database_name>
show collections
db.<collection_name>.remove({})
db.<collection_name>.find({“offers.@type”:“SingleOffer”}})
db.user.find()
db.user.find({“offers.offers.offerID”:“1”, “productID”:“1”})
The follwing command updates the type of the nested under offer
{
“_id” : “1”,
“offer” : {
“@type” : “foo”,
(...)
}