Skip to content
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

[Docs] Update "Relationship filtering" section in querying docs #895

Merged
merged 3 commits into from
Dec 19, 2021
Merged
Changes from all 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
6 changes: 2 additions & 4 deletions website/docs/querying-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ const denserThanEarth = orbit.cache.query((q) => {
3. the right hand value:
This is a value that will remain constant for the entirety of the filter. This value determines, given the operation, which records will be returned and which will not.

### Comparison operators for filtering

There are two different kinds of filtering. Filtering on attribute values and filtering on relationship values.
Both have their own comparison operators.

#### Attribute filtering
### Attribute filtering

Attribute filtering looks like the following:

Expand All @@ -271,7 +269,7 @@ For attribute filtering, the following comparison operators are available.
- `gte`: alias for the `>=` operator.
- `lte`: alias for the `<=` operator.

#### Relationship filtering
### Relationship filtering

Relationship filtering has two types:

Expand Down