Review a MongoDB repair and undo it after saving

A missing field, an explicit null and a string are three different states. In the original sample, two customer records lack plan. Follow them from the schema counts to a reviewed change, then restore both original documents’ missing plans.

Open the two missing plans

  1. Choose Sample data → acme → customers → Schema and select plan. In the original 17 documents, 12 plans are strings, two are missing, and one each is a null, an object or an array. The Missing bucket counts an absent field.
  2. Open the Missing bucket. The matching documents are Tessa Morgan and Ren Ito. Select those two documents. On a modified sample, inspect your current count and identities first.

Set Starter and review both records

  1. Choose Set field. Set plan to the string Starter. Open the pending change review.
  2. Check both cards. Each must show the field absent before the edit and "Starter" as the proposed value. Commit the two checked documents. Return to Schema. Missing falls from 2 to 0 and String rises from 12 to 14.
  3. To try independent history entries, save a second change on Tessa alone. For example, set accountNote to Follow up Friday.
The change review for Tessa and Ren shows the absent plan and the proposed Starter value for both customers.
Check the two proposed field changes before saving.

Reopen and undo the earlier save

  1. Reopen the same sample or securely remembered profile and open Change history for this collection. Choose the earlier two-document plan change.
  2. Open its undo review. Both proposed values are missing. Check the records and restore them. A conflict on a field you intend to undo requires another review.
  3. Refresh Schema → plan. Missing returns to 2. Open Tessa and check that accountNote still contains the later edit.
Sample desktop screens from the repair, restart and restore walkthrough · 25 seconds
Read the clip transcript
  1. In the plan field, Missing counts two documents.
  2. Review Tessa and Ren. Both plans change from missing to Starter.
  3. After reopening, both saves appear. Choose the earlier plan change.
  4. Check that only the plan field will be removed for each customer.
  5. The Missing count is two again. The later edit to Tessa’s note is preserved.

Repair every match to the applied filter

For a larger repair, run the MongoDB filter and choose Actions → Repair matches. Enter the missing field and typed value, then Preview all matches. This checks every page of the applied filter. Local Find text and hidden columns only affect the display.

The preview accepts up to 1,000 matches and 3 MiB of proposed before-and-after documents. Narrow the filter when either limit is reached. The operation fills an absent field. Existing null, empty string and other present values stay as they are.

Understand history and conflicts

The local sample and a securely remembered profile retain up to 20 eligible saves, subject to byte limits. Temporary profiles retain their history in memory for the session. The history describes eligible changes made through this app.

An edit on another field can survive a selective undo. A changed target field, missing record or uncertain outcome needs inspection. Read the affected record again before choosing how to proceed.