Skip to content

Commit c3bc67f

Browse files
authored
docs: fix minor grammatical errors in conditions guide (#1131)
1 parent dc45dd1 commit c3bc67f

File tree

1 file changed

+2
-2
lines changed
  • docs-src/src/content/pages/guide/conditions-in-depth

1 file changed

+2
-2
lines changed

docs-src/src/content/pages/guide/conditions-in-depth/en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ JavaScript is a superset of `JSON`, that's why we decided to use MongoDB query l
4343

4444
**You don't need to know anything about MongoDB** in order to use CASL, you need to know only subset of its query language operators.
4545

46-
Query is what you pass in conditions to `can` and `cannot` functions (3rd or 4th argument if you pass fields). So, it's an object which defines restrictions on a JavaScript object and if that restrictions are matched then a matched object is returned.
46+
Query is what you pass in conditions to `can` and `cannot` functions (3rd or 4th argument if you pass fields). So, it's an object which defines restrictions on a JavaScript object and if those restrictions are matched, then a matched object is returned.
4747

4848
Let's see at examples of queries:
4949

@@ -60,7 +60,7 @@ const queries = [
6060
]
6161
```
6262

63-
We can combine any amount of fields inside single query, all their restrictions are tested according to `AND` logic. If we do not specify operator, the query uses `$eq` operator (equality operator). So, a query like `(2)` matches objects if their `private` and `hidden` property values equal to `false` (i.e., `!object.private && !object.hidden`).
63+
We can combine any number of fields inside single query, all their restrictions are tested according to `AND` logic. If we do not specify operator, the query uses `$eq` operator (equality operator). So, a query like `(2)` matches objects if their `private` and `hidden` property values equal to `false` (i.e., `!object.private && !object.hidden`).
6464

6565
We can specify multiple operators for the same field, in this case each operator must return `true` to match a field value. So, `(3)` matches objects only if `price` property value is between 10 and 50 inclusively (i.e., `object.price >= 10 && object.price <= 50`).
6666

0 commit comments

Comments
 (0)