Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //User.js - my model
- module.exports = {
- attributes: {
- firstName : { type: 'string' },
- lastName : { type: 'string' },
- getName: function () {
- return this.firstName + ':' + this.lastName;
- }
- }
- };
- const testData = {
- firstName: 'Foo',
- lastName: 'Bar'
- };
- Admin.create(testData);
Add Comment
Please, Sign In to add comment