Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

add ilike operator #886

Merged
merged 1 commit into from
Oct 26, 2017
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
20 changes: 20 additions & 0 deletions api/databases/knexjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,26 @@ Through the REST API:
/messages?text[$like]=Hello%
```

### $ilike

For PostgreSQL only, the keywork $ilike can be used instead of $like to make the match case insensitive. The following query retrieves all messages that start with `hello` (case insensitive):

```js
app.service('messages').find({
query: {
text: {
$ilike: 'hello%'
}
}
});
```

Through the REST API:

```
/messages?text[$ilike]=hello%
```


## Transaction Support

Expand Down