Skip to content

Commit 02987ca

Browse files
authored
Merge pull request mongodb#43 from atsansone/DOCSP-13960
(DOCSP-13960) Add Edit Doc to Playground
2 parents 2778e2d + 8524f0d commit 02987ca

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

source/playgrounds.txt

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,32 @@ files with the ``.mongodb`` extension as playgrounds.
3030

3131
.. include:: /includes/admonitions/note-playgrounds.rst
3232

33-
|vsce| splits your Playground window to display the results of your
34-
Playground in |json| format in the right-side pane labeled ``Playground
35-
Results.json``. If you disabled split-view, |vsce| displays the
36-
Playground results in |json| format in a new tab to the right of
37-
your Playground. You cannot edit the results in the results pane.
38-
You can save the results to a file.
33+
|vsce| splits your Playground window to display your
34+
:guilabel:`Playground Result` in the right-side pane. You can perform
35+
one of two actions on the result depending on the query you ran in
36+
the Playground.
37+
38+
- You may save *any* :guilabel:`Playground Result` to a file.
39+
40+
- You may edit any |json| document that |vsce| returns in the
41+
:guilabel:`Playground Result` from a
42+
:doc:`findOne or find query </read-document-playground>`.
43+
44+
|vsce| returns these results in |json| format with |json| syntax
45+
highlighting. Each |json| document has an :guilabel:`Edit Document`
46+
link at its top.
47+
48+
1. Click :guilabel:`Edit Document` at the top of the document you
49+
want to edit.
50+
51+
|vsce| opens this one |json| document in a new window as an
52+
editable document.
53+
54+
2. Make any changes you need.
55+
56+
3. Press :kbd:`Ctrl+S` (:kbd:`Cmd+S` on macOS) to save those changes
57+
in the database.
58+
3959

4060
Prerequisite
4161
------------

0 commit comments

Comments
 (0)