I am sending a request to create a new record to an API. This call is successful and returns a uuid for the newly created record. I want to update the local store with the uuid. I am using normalizeResponse is my serializer like this:
normalizeResponse(store, primaryModelClass, payload, id, requestType){
if (requestType === ‘createRecord’) {
console.log(payload.uuid); // this shows the uuid being returned from the API
I would have expected the store to update the model (uuid exists in the model) but it does not update. What do I need to add to make the model update with the returned uuid?
Note: the uuid is NOT the primary key in the record.