-
Type: Sub-task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Iteration Star Apple, Iteration Tangerine
-
Needed
- When one or more documents returned by a playground are displayed in the read-only editor with the results, documents will have a code lens to access the editing functionality when:
- The playground result is a document returned by `findOne()`.
- Or list of documents returned by `find()`.
- Document's `_is` is presented.
- By clicking on the code lens, the user is taken to a new editable version of the document, displayed in EJSON (the editable document is shown with all its fields)
- When the document is saved (Cmd/Ctrl + S or with the menu), the document in the collection is updated to reflect the changes that were made.
- When the document is saved, a notification informs the user that the change has been saved in MongoDB.
- When the update results in an error, the user is notified.
- It's possible to make edits to a document and save it more than once.