Company: DIT intern hiring test
Difficulty: hard
Incorrect Statements About MongoDB Collection Methods Which of the following statements about MongoDB collection methods are incorrect? Select all that apply. db.collection.findAndModify() does not have any way to allow creation of new documents if it does not already exist. db.orders.countDocuments( {}, { limit: 100, skip: 25 } ) will return 100 orders after skipping the first 25 documents in the collection. db.collection.findOneAndReplace() is not a valid MongoDB Collection method. db.products.remove( { qty: { $gt: 20 } }) will remove all the products from the collection having the qty value greater than equal to 20.