Update Documents: Part 1

Learn and practice commands to perform updates on single and multiple documents.

Update single document

We use the below commands to update a single document.

db.<collection-name>.updateOne(
    <filter query>,
    <update document>,
    <options>
);

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy