HomeEasy MongoDB: Update III (MCQ) December 02, 2020 0 MongoDB: Update III (MCQ) MongoDB: Update III (MCQ) Which of the following statements about the query are true? db.inventory.update( { tags: { $nin: [ "appliances", "school" ] } }, { $set: { sale: false } } ) This operation will set the sale field value in the inventory collection where the tags field holds an array with no elements matching an element in the array ["appliances", "school"]The tags field of the document cannot be an array in order for this query to workThis operation will set the sale field value in the inventory collection where a document does not contain the tags field.None of the above
Post a Comment