No. DS.Modelis Ember.Object, therefore, if possible, we would use create:
const User = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
});
const foo = User.create({ firstName: 'Foo', lastName: 'Bar' });
> Uncaught EmberError { message: "You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.", ... ]
DS.Model instances are attached to the repository by design (that they receive updates when new data is entered), so it makes no sense to create an instance DS.Modelwithout this connection. Ember Data makes this explicit by requiring you to call createRecordinto your store instance.
source
share