You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/defining-documents.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ documents are serialized based on their field order.
29
29
30
30
.. _dynamic-document-schemas:
31
31
32
-
Dynamic document schemas
32
+
Dynamic Document Schemas
33
33
========================
34
34
One of the benefits of MongoDB is dynamic schemas for a collection, whilst data
35
35
should be planned and organised (after all explicit is better than implicit!)
@@ -260,7 +260,7 @@ document class as the first argument::
260
260
comment2 = Comment(content='Nice article!')
261
261
page = Page(comments=[comment1, comment2])
262
262
263
-
Embedded documents can also leverage the flexibility of :ref:`dynamic-document-schemas:`
263
+
Embedded documents can also leverage the flexibility of :ref:`dynamic-document-schemas`
264
264
by inheriting :class:`~mongoengine.DynamicEmbeddedDocument`.
265
265
266
266
Dictionary Fields
@@ -325,7 +325,7 @@ as the constructor's argument::
325
325
.. _many-to-many-with-listfields:
326
326
327
327
Many to Many with ListFields
328
-
'''''''''''''''''''''''''''
328
+
''''''''''''''''''''''''''''
329
329
330
330
If you are implementing a many to many relationship via a list of references,
331
331
then the references are stored as DBRefs and to query you need to pass an
@@ -492,7 +492,7 @@ The following example shows a :class:`Log` document that will be limited to
492
492
meta = {'max_documents': 1000, 'max_size': 2000000}
493
493
494
494
Timeseries collections
495
-
------------------
495
+
----------------------
496
496
A :class:`~mongoengine.Document` may use a **Timeseries Collection** by specifying
497
497
:attr:`timeseries` in the :attr:`meta` dictionary. Timeseries collection were added
498
498
in MongoDB 5.0 (`doc <https://www.mongodb.com/docs/v5.3/core/timeseries-collections/>`_).
@@ -599,7 +599,7 @@ There are a few top level defaults for all indexes that can be set::
599
599
600
600
601
601
:attr:`index_opts` (Optional)
602
-
Set any default index options - see the `full options list <https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#db.collection.createIndex>`_
602
+
Set any default index options - see the `full options list <https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/>`_
603
603
604
604
:attr:`index_background` (Optional)
605
605
Set the default value for if an index should be indexed in the background
0 commit comments