From 2c31260e81aad448ab9c33bc7a9fee33c8364b52 Mon Sep 17 00:00:00 2001 From: "John A. Kunze" Date: Sat, 5 Aug 2017 18:12:31 -0700 Subject: [PATCH] Update Tutorial.pod typos --- lib/MongoDB/Tutorial.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/MongoDB/Tutorial.pod b/lib/MongoDB/Tutorial.pod index eae6505b..9a32f900 100644 --- a/lib/MongoDB/Tutorial.pod +++ b/lib/MongoDB/Tutorial.pod @@ -208,7 +208,7 @@ the C<"likes"> array, we write: $users->update_one({"_id" => $id}, {'$push' => {'likes' => 'reading'}}); To add a new field or change the type or value of an existing field, we use -C<$set>. For example, to change the _id field to a username, we would say: +C<$set>. For example, to change the C field to a username, we would say: $users->update_one({"_id" => $id}, {'$set' => {'name' => 'joe_schmoe'}}); @@ -240,7 +240,7 @@ They take the same type of hash queries do: $users->delete_many({"name" => "Joe"}); -It does not delete the collection, though (in that in that it will still appear +It does not delete the collection, though (in that it will still appear if the user lists collections in the database and the indexes will still exist). To remove a collection entirely, call C: @@ -254,7 +254,7 @@ C can also be used for whole databases: =head2 Database Commands -There are a large number of useful database commands that can be called +There is a large number of useful database commands that can be called directly on C<$db> with the L method.