Skip to content

Commit e455561

Browse files
p-mongop
andauthored
MONGOID-5025 Document caveats of embedded documents without _id field (#4948)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 2d59fd4 commit e455561

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/tutorials/mongoid-relations.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,11 @@ In the current version of Mongoid the field definition is required, but
734734
without a default value specified no value will be stored in the database.
735735
A future version of Mongoid may allow removing previously defined fields.
736736

737+
.. note::
738+
739+
Removing the ``_id`` field means that embedded documents must be identified
740+
by their content attribute values during queries, updates and deletes.
741+
737742

738743
Common Behavior
739744
===============

0 commit comments

Comments
 (0)