Skip to content

Commit

Permalink
Update documentation accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kmaschta committed Aug 5, 2019
1 parent dff0e45 commit d1c6150
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/DataProviders.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ Request Type | Response format
`CREATE` | `{ data: {Record} }`
`UPDATE` | `{ data: {Record} }`
`UPDATE_MANY` | `{ data: {mixed[]} }` The ids which have been updated
`DELETE` | `{ data: {Record} }`
`DELETE_MANY` | `{ data: {mixed[]} }` The ids which have been deleted
`DELETE` | `{ data: {Record} }` The resource that had been deleted or nothing
`DELETE_MANY` | `{ data: {mixed[]} }` The ids which have been deleted or an empty array
`GET_MANY` | `{ data: {Record[]} }`
`GET_MANY_REFERENCE` | `{ data: {Record[]}, total: {int} }`

Expand Down Expand Up @@ -678,6 +678,8 @@ export default (type, resource, params) => {
};
case CREATE:
return { data: { ...params.data, id: json.id } };
case DELETE_MANY:
return { data: json ? json : [] };
default:
return { data: json };
}
Expand Down

0 comments on commit d1c6150

Please sign in to comment.