You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/reference/command/renameCollection.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ renameCollection
29
29
30
30
Specifies the new namespace of the collection.
31
31
32
-
:param boolean dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
32
+
:param boolean,optional dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
:param string target: Specifies the new name of the collection. Enclose the string in quotes.
11
10
12
-
:param boolean dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
11
+
:param boolean,optional dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
13
12
14
13
Call the :method:`db.collection.renameCollection()` method on a collection
15
14
object, to rename a collection. Specify the new name of the
0 commit comments