File tree Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,18 @@ authenticate
36
36
- :method:`db.auth()`
37
37
- :doc:`/security`
38
38
39
+
40
+ Compatibility
41
+ -------------
42
+
43
+ This command is available in deployments hosted in the following environments:
44
+
45
+ .. include:: /includes/fact-environments-atlas-only.rst
46
+
47
+ .. include:: /includes/fact-environments-atlas-support-no-free.rst
48
+
49
+ .. include:: /includes/fact-environments-onprem-only.rst
50
+
39
51
Behavior
40
52
--------
41
53
Original file line number Diff line number Diff line change @@ -26,18 +26,32 @@ logout
26
26
27
27
{ logout: 1 }
28
28
29
- .. |operation-name| replace:: :dbcommand:`logout`
30
- .. include:: /includes/note-logout-namespace.rst
29
+ Compatibility
30
+ -------------
31
31
32
- .. example::
32
+ This command is available in deployments hosted in the following environments:
33
33
34
- .. include:: /includes/fact-change-database-context .rst
34
+ .. include:: /includes/fact-environments-atlas-only .rst
35
35
36
- When you have set the database context and ``db`` object, you
37
- can use the |operation-name| to log out of database as in the
38
- following operation:
36
+ .. include:: /includes/fact-environments-atlas-support-all.rst
39
37
40
- .. code-block :: javascript
38
+ .. include :: /includes/fact-environments-onprem-only.rst
41
39
42
- db.runCommand( { logout: 1 } )
40
+ Example
41
+ -------
42
+
43
+ .. |operation-name| replace:: :dbcommand:`logout`
44
+ .. include:: /includes/note-logout-namespace.rst
45
+
46
+ .. example::
47
+
48
+ .. include:: /includes/fact-change-database-context.rst
49
+
50
+ When you have set the database context and ``db`` object, you
51
+ can use the |operation-name| to log out of database as in the
52
+ following operation:
53
+
54
+ .. code-block:: javascript
55
+
56
+ db.runCommand( { logout: 1 } )
43
57
You can’t perform that action at this time.
0 commit comments