-
Notifications
You must be signed in to change notification settings - Fork 24
DOCSP-49061 - Query filters (Comprehensive Coverage) #620
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
base: docsp-45382-comp-cvg
Are you sure you want to change the base?
DOCSP-49061 - Query filters (Comprehensive Coverage) #620
Conversation
✅ Deploy Preview for docs-csharp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
.. include:: /includes/method-overloads.rst | ||
|
||
Sample Data |
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.
These code examples will eventually be integrated into the server manual, at which time they will use the Atlas sample data. Missing code examples will also be added.
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.
LGTM with some nits! I like this page structure a lot.
source/crud/query/query-filter.txt
Outdated
|
||
.. output:: | ||
:language: json | ||
:visible: |
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.
Nit, also applies to the other occurences on the page.
:visible: | |
:visible: false |
source/crud/query/query-filter.txt
Outdated
- :manual:`$size </reference/operator/query/size/>` | ||
|
||
The following example uses builders to create a query filter that matches all | ||
documents that have three elements in the ``models`` field: |
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.
Nit: Might be helpful to specify.
documents that have three elements in the ``models`` field: | |
documents that have exactly three elements in the ``models`` field: |
source/crud/query/query-filter.txt
Outdated
of the string values in the query array. | ||
- :manual:`$in </reference/operator/query/in/>` | ||
|
||
The following example specifies a query filter as a parameter to the ``Find()`` |
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.
Technically it specifies a predicate "lambda expression", which is translated by the driver into a "query filter".
But you could use a loose definition of "query filter" to include lambda expressions if you want...
source/crud/query/query-filter.txt
Outdated
the specified field. | ||
- :manual:`$bitsAllClear </reference/operator/query/bitsAllClear/>` | ||
|
||
* - ``bitsAllSet()`` |
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.
Initial b
should be capitalized: BitsAllSet
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.
good catch.
source/crud/query/query-filter.txt
Outdated
the specified field. | ||
- :manual:`$bitsAllSet </reference/operator/query/bitsAllSet/>` | ||
|
||
* - ``bitsAnyClear()`` |
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.
Initial b
should be capitalized: BitsAnyClear
source/crud/query/query-filter.txt
Outdated
the specified field. | ||
- :manual:`$bitsAnyClear </reference/operator/query/bitsAnyClear/>` | ||
|
||
* - ``bitsAnySet()`` |
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.
Initial b
should be capitalized: BitsAnySet
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.
LGTM
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-49061
Staging Links
Self-Review Checklist