Skip to content

Commit

Permalink
sm
Browse files Browse the repository at this point in the history
  • Loading branch information
nezaj committed Nov 26, 2024
1 parent 16e3218 commit 63577e6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/www/pages/docs/instaql.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,14 @@ console.log(data)
The `where` clause supports `$like` on fields that are indexed with a checked `string` type.
`$like` queries will return entities that match a case-insensitive substring of the provided value for the field.
You can use `$like` to do queries like `contains`, `startsWith`, and `endsWith`.
`$like` queries will return entities that match a case-insensitive substring of the provided value for the field. Here's how you can do queries like `startsWith`, `endsWith` and `includes`.
| Example | Description | JS equivalent |
| :-----------------------: | :------------------: | :-----------: |
| `{ $like: "Get%" }` | Starts with 'Get' | `startsWith` |
| `{ $like: "%promoted!" }` | Ends with 'promoted' | `endsWith` |
| `{ $like: "%fit%" }` | Contains 'fit' | `includes` |
`{ $like: "%promoted!" }` looks for values that end with "promoted!".
Expand Down

0 comments on commit 63577e6

Please sign in to comment.