mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 15:37:36 +00:00
4d6363b47a
* docs: update database repository docs * docs: single relation repository docs * docs: has many relation repository docs * docs: belongs to many relation repository docs * docs: acl * docs: actions Co-authored-by: chenos <chenlinxh@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
: 事务对象。如果没有传入事务参数,该方法会自动创建一个内部事务。