diff --git a/client/www/pages/docs/instaql.md b/client/www/pages/docs/instaql.md index e7b95663a..0aa145a7b 100644 --- a/client/www/pages/docs/instaql.md +++ b/client/www/pages/docs/instaql.md @@ -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!".