Skip to content

postgrelize / BuildOptions

Type Alias: BuildOptions ​

BuildOptions = Readonly<{ include?: IncludeOption; isNewRecord?: boolean; raw?: boolean; }>

Defined in: src/model/options.ts:140

Options of Model.build (and the model constructor).

See ​

Model.build

Example ​

ts
const opts: BuildOptions = { isNewRecord: false, raw: true };
const user = User.build({ id: 1, name: 'Ann' }, opts);

Released under the MIT License.