$build
Create a new record in the table. The $build method is used to insert a single entry into the database by providing the required data. This method validates the input data against the schema before saving it to ensure consistency and integrity.
var member = await Member.$build({
isPremium: true,
userId: '1234567890',
username: 'fivesobes',
lastJoinedAt: new Date()
});
Last updated