Skip to content

Commit 58ff611

Browse files
committed
Add nei to Query Engine API
1 parent 0dd57fc commit 58ff611

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docusaurus/docs/dev-docs/api/query-engine/filtering.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,22 @@ const entries = await strapi.db.query('api::article.article').findMany({
177177
});
178178
```
179179

180+
### `$nei`
181+
182+
Attribute does not equal input value (case-insensitive).
183+
184+
**Example**
185+
186+
```js
187+
const entries = await strapi.db.query('api::article.article').findMany({
188+
where: {
189+
title: {
190+
$nei: 'abcd',
191+
},
192+
},
193+
});
194+
```
195+
180196
### `$in`
181197

182198
Attribute is contained in the input list.

0 commit comments

Comments
 (0)