Skip to content

Commit 99b4f4e

Browse files
committed
add to upgrade guide
1 parent 5f1ceeb commit 99b4f4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/upgrade.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ This library version introduces the following breaking changes:
7474
- In query results, the library converts BSON ``UTCDateTime`` objects to ``Carbon``
7575
date classes, applying the default timezone.
7676

77+
- ``id`` is an alias for the ``_id`` field in MongoDB documents, and the library
78+
automatically converts between ``id`` and ``_id`` when querying data. Because
79+
of this behavior, you cannot have two separate ``id`` and ``_id`` fields in your
80+
documents.
81+
7782
.. _laravel-breaking-changes-v4.x:
7883

7984
Version 4.x Breaking Changes

0 commit comments

Comments
 (0)