Skip to content

Question 15 / 50

ImportantMediumDebuggingArrays

This update is supposed to mark one skill as verified. What is wrong with it?

db.users.updateOne(
  { _id: ObjectId("64a1b2c3d4e5f6a7b8c90001"), "skills.name": "Node.js" },
  { $set: { "skills.verified": true } }
)
Think about it first.