-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-44821: specify a query pt 2 #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rustagir
merged 8 commits into
mongodb:standardized
from
rustagir:DOCSP-44821-specify-query-2
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e213f83
DOCSP-44821: specify a query pt 2
rustagir 9af73cb
Merge branch 'standardized' of github.com:mongodb/docs-mongoid into D…
rustagir 22de652
wip
rustagir 65d1783
wip
rustagir 8895224
wip
rustagir 4de789e
small fixes
rustagir 348870b
MW PR fixes 1
rustagir ca219dc
small fixes - MW
rustagir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -43,7 +43,7 @@ Sample Data | |||||||||
The examples in this guide use the ``Band`` model, which represents a | ||||||||||
band or musical group. The definition of the ``Band`` model might be | ||||||||||
different for each section to demonstrate different query | ||||||||||
functionalities. Some sections might also use other supplementary models | ||||||||||
functionalities. Some sections might use other models | ||||||||||
to demonstrate query functionality. | ||||||||||
|
||||||||||
Queries in {+odm+} | ||||||||||
|
@@ -492,9 +492,9 @@ an array field with at least one element that matches all the specified | |||||||||
query criteria. | ||||||||||
|
||||||||||
The following example creates a sample document that contains an array | ||||||||||
field, then uses the ``elem_match()`` method to match documents in | ||||||||||
which the ``tour`` array field contains an entry in which the value of | ||||||||||
the ``city`` field is ``'London'``: | ||||||||||
field. Then, it uses the ``elem_match()`` method to match documents in | ||||||||||
which the ``tour`` array field contains an entry in which the ``city`` | ||||||||||
value is ``'London'``: | ||||||||||
|
||||||||||
.. literalinclude:: /includes/interact-data/query.rb | ||||||||||
:start-after: start-elem-match-1 | ||||||||||
|
@@ -529,7 +529,7 @@ field: | |||||||||
.. note:: | ||||||||||
|
||||||||||
You cannot use ``elem_match()`` on non-embedded associations because | ||||||||||
MongoDB does not perform a join on the collections. | ||||||||||
MongoDB does not perform a join operation on the collections. | ||||||||||
If you perform this query, the conditions are added to the collection | ||||||||||
that is the source of the non-embedded association rather than the | ||||||||||
collection of the association. | ||||||||||
|
@@ -546,7 +546,7 @@ as shown in the following example: | |||||||||
Querying by _id Value | ||||||||||
--------------------- | ||||||||||
|
||||||||||
{+odm+} provides the ``find()`` method that allows you to query | ||||||||||
{+odm+} provides the ``find()`` method, which allows you to query | ||||||||||
documents by their ``_id`` values. | ||||||||||
|
||||||||||
The following example uses the ``find()`` method to match a document | ||||||||||
|
@@ -558,8 +558,8 @@ with the specified ``_id`` field value: | |||||||||
|
||||||||||
.. note:: Type Conversion | ||||||||||
|
||||||||||
The ``find()`` method performs the type conversion of the argument that | ||||||||||
you pass to the type declared for the ``_id`` field in the model. By | ||||||||||
The ``find()`` method converts the ID that you pass to the | ||||||||||
data type declared for the ``_id`` field in the model. By | ||||||||||
|
The ``find()`` method converts the ID that you pass to the | |
data type declared for the ``_id`` field in the model. By | |
When you pass an ID to the ``find()`` method, the method converts it | |
to the data type declared for the ``_id`` field in the model. By |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need an "as" in here: "The syntax for X is the same as [the syntax] for Y."
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.