code: function addIdToSnapshot(snapshot) {
    var record = snapshot.record;
    record.get('store').updateId(record, { id: generateUniqueId() });
    return record._createSnapshot();
  }
docs: Add an id to record before create in local