This repository was archived by the owner on Dec 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ the C<"likes"> array, we write:
208208 $users->update_one({"_id" => $id}, {'$push' => {'likes' => 'reading'}});
209209
210210To add a new field or change the type or value of an existing field, we use
211- C<$set>. For example, to change the _id field to a username, we would say:
211+ C<$set>. For example, to change the C<name> field to a username, we would say:
212212
213213 $users->update_one({"_id" => $id}, {'$set' => {'name' => 'joe_schmoe'}});
214214
@@ -240,7 +240,7 @@ They take the same type of hash queries do:
240240
241241 $users->delete_many({"name" => "Joe"});
242242
243- It does not delete the collection, though (in that in that it will still appear
243+ It does not delete the collection, though (in that it will still appear
244244if the user lists collections in the database and the indexes will still exist).
245245To remove a collection entirely, call C<drop>:
246246
@@ -254,7 +254,7 @@ C<drop> can also be used for whole databases:
254254
255255=head2 Database Commands
256256
257- There are a large number of useful database commands that can be called
257+ There is a large number of useful database commands that can be called
258258directly on C<$db> with the L<run_command|MongoDB::Database/run_command>
259259method.
260260
You can’t perform that action at this time.
0 commit comments