mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 00:56:33 +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>
822 B
822 B
类型
type WhiteList = string[];
type BlackList = string[];
type AssociationKeysToBeUpdate = string[];
interface CreateOptions extends SequelizeCreateOptions {
values?: Values;
whitelist?: WhiteList;
blacklist?: BlackList;
updateAssociationValues?: AssociationKeysToBeUpdate;
context?: any;
}
详细信息
values
:要创建的记录的数据对象。whitelist
:指定要创建的记录的数据对象中,哪些字段可以被写入。若不传入此参数,则默认允许所有字段写入。blacklist
:指定要创建的记录的数据对象中,哪些字段不允许被写入。若不传入此参数,则默认允许所有字段写入。transaction
: 事务对象。如果没有传入事务参数,该方法会自动创建一个内部事务。