node.js - What is the difference between .create() and .createCB() in Sails.js (Waterline ORM)? -
in the sails documentation on create, documentation talks function named ".create()" , use following example "createcb()":
// create new record name 'walter jr' user.create({name:'walter jr'}).exec(function createcb(err, created){ console.log('created user name ' + created.name); }); // created user name walter jr // don't forget handle errors , abide rules defined in model
what use of createcb , cb stands ?
(edited)
Comments
Post a Comment