2015-08-18

MongoDB - Array pop the first element of an array type of field

db.COLLECTION_NAME.update( {FILTER_HERE}, { $pop:{FIELD_NAME_WITH_ARRAY: -1 } } );