Update Comment Clarification

My code passes the unit tests, but I didn’t use the ObjectId() when confirming the user., and instead just searched for the id directly.

NOT using the ObjectId() with insertOne() should result in some kind or error, right? Or does MongoDB figure it out on the backend, and it’s just a “best practice” to use the ObjectId() in code?

@GHMaster it would help to know what lab and chapter exactly you are referring to. And also show the _id line you parsed.

You are right here. For _id field, there is not strict rule to use ObjectId, but it is recommended to use ObjectId.

Its would be great if you can share more information here. Let me know if you need help here.