Assertion Failed on destroyRecord


Hi, I use Ember 3.0 and LoopBack 3.0 as backend. When I try to delete record from model (Code) I get an error:

Assertion Failed: ‘code:4’ was saved to the server, but the response returned the new id ‘null’. The store cannot assign a new id to a record that already has an id.

In the database the record is deleted but the page does not reload.

When I create record everything is ok.

My application adapter: (app/adapters/application.js)

import DS from 'ember-data';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';

export default DS.RESTAdapter.extend(DataAdapterMixin, {
  authorizer: 'authorizer:application',

  host: 'https://my-api-url',
  namespace: 'api',


My application serializer: (app/serializers/application.js)

import DS from 'ember-data';

export default DS.JSONSerializer.extend({

After sending the DELETE request, the server sends a 200 OK status code and response with {“count”:1} content.

How can I modify my serializer to work properly?

Thanks for the help.


I resolved problem by installing loopback-component-jsonapi