Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions source/fundamentals/builders/filters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Builders are classes provided by the MongoDB Kotlin driver that help you
construct :ref:`BSON <bson>` objects. To learn more, see our :doc:`guide
on builders </fundamentals/builders/>`.

Filters are the operations MongoDB uses to limit your results to what
you want to see.
Filters are operations used to limit the results of a query based on
specific conditions. Filters are a helpful tool to locate the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: is it specific conditions or "the specified conditions"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! I like that a lot more.

information needed based on search conditions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
information needed based on search conditions.
Filters are a helpful tool to locate information that matches search conditions in a collection.


You can use filters in the following places:

Expand All @@ -32,9 +33,9 @@ You can use filters in the following places:

Some examples of results from queries with filters are:

- Items that cost $0 to $25
- A hotel with amenities that include an indoor swimming pool and free parking
- A food critic review that mentions "spicy"
- Items that cost more than $0 but less than $25
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add a period at the end of each bullet as these are complete sentences.

Suggested change
- Items that cost more than $0 but less than $25
- Items that cost more than $0 but less than $25.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Foods that are both gluten-free and less than 500 calories
- A food critic review that mentions "spicy"

This guide shows you how to use builders with examples of the following
types of operators:
Expand Down