mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:35:14 +00:00
a6eebb940f
* feat: improve code * feat: update docs * feat: update docs * Update index.md * Update features.md * Update when.md * Update contributing.md * Update translations.md * feat: clean up * Add files via upload * Update the-first-app.md * Update plugins.md * Update a-b-c.md * Update blocks.md * feat: update docs * Add files via upload * Update charts.md * feat: update navs * Update index.md * Update index.md * Update features.md * Update index.md * Update docker-compose.md * Update create-nocobase-app.md * Update git-clone.md * Update contributing.md * Update translations.md * Update plugins.md * Update the-first-app.md * Add files via upload * Update charts.md * Update charts.md * Update a-b-c.md * Update collections.md * Update menus.md * Update menus.md Co-authored-by: Zhou <zhou.working@gmail.com>
870 B
870 B
类型
interface UpdateOptions extends Omit<SequelizeUpdateOptions, 'where'> {
values: Values;
filter?: Filter;
filterByTk?: TargetKey;
whitelist?: WhiteList;
blacklist?: BlackList;
updateAssociationValues?: AssociationKeysToBeUpdate;
context?: any;
}
详细信息
values
:要更新的记录的数据对象。filter
:指定要更新的记录的过滤条件, Filter 详细用法可参考find()
方法。filterByTk
:按 TargetKey 指定要更新的记录的过滤条件。whitelist
:values
字段的白名单,只有名单内的字段会被写入。blacklist
:values
字段的黑名单,名单内的字段不会被写入。transaction
: 事务对象。如果没有传入事务参数,该方法会自动创建一个内部事务。
filterByTk
与 filter
至少要传其一。