Waterline.create()

Create a new record for this model with the specified attributes.

Usage

Hover over inputs/exits for more info.

var Waterline = require('machinepack-waterline');


// Create a new record for this model with the specified attributes.

Waterline.create({

model: 'user',

attributes: {},

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

model required

'user'
attributes

The attributes that the new record should have.

{}

Exits

error

An unexpected error occurred.

undefined
success

OK.

'*'