Skip to content

Commit 2c98016

Browse files
committed
Use reference-style links in Upgrade Guide
1 parent 9590203 commit 2c98016

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

docs/upgrade-guide.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ between [updating specific fields][update] and
8383
[MongoDB\Collection][collection] does not yet have a helper method for the
8484
[group][group] command; however, that is planned in [PHPLIB-177][jira-group].
8585
The following example demonstrates how to execute a group command using
86-
[Database::command()](classes/database.md#command):
86+
[Database::command()][command]:
87+
88+
[command]: classes/database.md#command
8789

8890
```php
8991
<?php
@@ -108,7 +110,7 @@ $resultDocument = $cursor->toArray()[0];
108110
[MongoDB\Collection][collection] does not yet have a helper method for the
109111
[mapReduce][mapReduce] command; however, that is planned in
110112
[PHPLIB-53][jira-mapreduce]. The following example demonstrates how to execute a
111-
mapReduce command using [Database::command()](classes/database.md#command):
113+
mapReduce command using [Database::command()][command]:
112114

113115
```php
114116
<?php
@@ -139,8 +141,11 @@ with [DBRef][dbref] objects; however, that is planned in
139141

140142
[MongoCollection::save()][save], which was syntactic sugar for an insert or
141143
upsert operation, has been removed in favor of explicitly using
142-
[insertOne()](classes/collection.md#insertone) or
143-
[replaceOne()](classes/collection.md#replaceone) (with the "upsert" option).
144+
[insertOne()][insertone] or [replaceOne()][replaceone] (with the "upsert"
145+
option).
146+
147+
[insertone]: classes/collection.md#insertone
148+
[replaceone]: classes/collection.md#replaceone
144149

145150
![save() flowchart](img/save-flowchart.png)
146151

@@ -155,8 +160,9 @@ dangerous [full-document replacements][replace].
155160
### MongoWriteBatch
156161

157162
The legacy driver's [MongoWriteBatch][batch] classes have been replaced with a
158-
general-purpose [bulkWrite()](classes/collection.md#bulkwrite) method. Whereas
159-
the legacy driver only allowed bulk operations of the same time, the new method
160-
allows operations to be mixed (e.g. inserts, updates, and deletes).
163+
general-purpose [bulkWrite()][bulkwrite] method. Whereas the legacy driver only
164+
allowed bulk operations of the same time, the new method allows operations to be
165+
mixed (e.g. inserts, updates, and deletes).
161166

162167
[batch]: http://php.net/manual/en/class.mongowritebatch.php
168+
[bulkwrite]: classes/collection.md#bulkwrite

0 commit comments

Comments
 (0)