# [Command](/minigame/dev/wxcloud/reference-sdk-api/database/Command).not(command: [Command](/minigame/dev/wxcloud/reference-sdk-api/database/Command)): [Command](/minigame/dev/wxcloud/reference-sdk-api/database/Command)

> 支持端：[小程序 2.8.3](/miniprogram/dev/framework/client-lib/version.md), [云函数 1.2.1](/minigame/dev/wxcloud/reference/changelog-server-sdk), [Web](/minigame/dev/wxcloud/reference/changelog-web-sdk)

查询操作符，用于表示逻辑 "非" 的关系，表示需不满足指定的条件。

## 参数

### command: [Command](/minigame/dev/wxcloud/reference-sdk-api/database/Command)

## 返回值

### [Command](/minigame/dev/wxcloud/reference-sdk-api/database/Command)

## 示例

如筛选出进度不等于100的 todo：

```js
const _ = db.command
db.collection('todo').where({
  progress: _.not(_.eq(100))
})
```

`not` 也可搭配其他逻辑指令使用，包括 `and`, `or`, `nor`, `not`，如 `or`：

```js
const _ = db.command
db.collection('todo').where({
  progress: _.not(_.or([_.lt(50), _.eq(100)]))
})
```
