Skip to content

Commit 3e6e135

Browse files
authored
Merge pull request #170 from devforth/fix-and-or-filter-example
docs: fix and or filter example
2 parents ee3daeb + e09d8c9 commit 3e6e135

File tree

1 file changed

+3
-3
lines changed
  • adminforth/documentation/docs/tutorial/03-Customization

1 file changed

+3
-3
lines changed

adminforth/documentation/docs/tutorial/03-Customization/11-dataApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ const schools = await admin.resource('schools').list(
108108
);
109109
```
110110

111-
Get all users that have gmail address OR the ones created not in 2024
111+
Get all users that have gmail address AND the ones created not in 2024
112112

113113
```ts
114114
const users = await admin.resource('adminuser').list(
115-
Filters.OR([
115+
Filters.AND([
116116
Filters.LIKE('email', '@gmail.com'),
117-
Filters.AND([
117+
Filters.OR([
118118
Filters.LT('createdAt', '2024-01-01T00:00:00.000Z'),
119119
Filters.GTE('createdAt', '2025-01-01T00:00:00.000Z'),
120120
]),

0 commit comments

Comments
 (0)