Skip to content

Commit 8d3b4cd

Browse files
committed
RR feedback
1 parent 2ebff0c commit 8d3b4cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/query-builder.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ the value of the ``title`` field is ``"Back to the Future"``:
195195

196196
You can use the ``id`` alias in your queries to represent the
197197
``_id`` field in MongoDB documents, as shown in the preceding
198-
code. When you run a find operation using the query builder, the {+odm-short+}
199-
automatically converts between ``id`` and ``_id``. In query results,
200-
the ``_id`` field is renamed to ``id``. This provides better
201-
compatibility with Laravel, as the framework assumes that each record has a
198+
code. When you use the query builder to run a find operation, the {+odm-short+}
199+
automatically converts between ``_id`` and ``id`` field names. In query results,
200+
the ``_id`` field is presented as ``id``. This provides better
201+
consistency with Laravel, as the framework assumes that each record has a
202202
primary key named ``id`` by default.
203203

204204
Because of this behavior, you cannot have two separate ``id`` and ``_id``

0 commit comments

Comments
 (0)