不要怂,就是干,撸起袖子干!

Commit bf4700b0 by Julian Hundeloh Committed by Simon Schick

fix(types): add validate option to CreateOptions

1 parent 32be0612
Showing with 10 additions and 0 deletions
......@@ -629,6 +629,13 @@ export interface CreateOptions extends BuildOptions, Logging, Silent, Transactio
* On Duplicate
*/
onDuplicate?: string;
/**
* If false, validations won't be run.
*
* @default true
*/
validate?: boolean;
}
/**
......
......@@ -17,4 +17,7 @@ async function test(): Promise<void> {
const user2 = await User.create({ firstName: 'John', groupId: 1 });
await User.findAndCountAll({ distinct: true });
const user3 = await User.create({ firstName: 'Jane', groupId: 1 }, { validate: false });
await User.findAndCountAll({ distinct: true });
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!