Skip to content

Commit 1963352

Browse files
committed
query api section
1 parent 4eedc94 commit 1963352

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

source/interact-data/crud.txt

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,33 @@ In this guide, you can learn how to use {+django-odm+} to run
2424
create, read, update, and delete (CRUD) operations on your MongoDB
2525
collection.
2626

27+
You can also use the {+framework+} admin site to edit your models
28+
and their corresponding collections on a web interface. For
29+
more information, see the `Django Admin Site <https://docs.djangoproject.com/en/5.1/ref/contrib/admin/>`__
30+
entry in the {+framework+} documentation.
31+
32+
Query API
33+
~~~~~~~~~
34+
2735
You can use methods provided by the {+framework+} ``QuerySet`` API to run
2836
CRUD operations. To run these operations, you can call ``QuerySet`` methods
2937
on your model's manager. The ``Manager`` class handles database
3038
operations and allows you to interact with your MongoDB data by referencing
3139
Django models. By default, {+framework+} adds a ``Manager`` named ``objects``
3240
to every model class.
3341

34-
This guide shows how to use the following ``QuerySet`` methods:
35-
36-
- :ref:`create() <django-crud-insert>`: Inserts documents into the collection
37-
- :ref:`filter() and get() <django-crud-read>`: Retrieves one or multiple collection documents
38-
- :ref:`update() <django-crud-modify>`: Modifies collection documents
39-
- :ref:`delete() <django-crud-delete>`: Deletes collection documents
40-
4142
.. tip::
4243

4344
To learn more about {+framework+}'s ``QuerySet`` API, see the
4445
`QuerySet API reference <https://docs.djangoproject.com/en/5.1/ref/models/querysets/>`__
4546
in the {+framework+} documentation.
4647

47-
You can also use the {+framework+} admin site to edit your models
48-
and their corresponding collections on a web interface. For
49-
more information, see the `Django Admin Site <https://docs.djangoproject.com/en/5.1/ref/contrib/admin/>`__
50-
entry in the {+framework+} documentation.
48+
This guide shows how to use the following ``QuerySet`` methods:
49+
50+
- :ref:`create() <django-crud-insert>`: Inserts documents into the collection
51+
- :ref:`filter() and get() <django-crud-read>`: Retrieves one or multiple collection documents
52+
- :ref:`update() <django-crud-modify>`: Modifies collection documents
53+
- :ref:`delete() <django-crud-delete>`: Deletes collection documents
5154

5255
Sample Data
5356
~~~~~~~~~~~

0 commit comments

Comments
 (0)