4 ms·
The return fields specify the data you want on creation of resource. In REST, the server used to return either full data or the [201](https://developer.mozilla.
by patelpankaj 9y ago
The return fields specify the data you want on creation of resource. In REST, the server used to return either full data or the [201](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201)
Specifying the fields on mutation means data is inserted/updated and the query on the new data has following changes, and you can select form those changes
- krainboltgreene 9y ago> In REST, the server used to return either full data or the [201](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201) Nothing in the dissertation or any other describing document enforces or even suggests you have to do this, and in fact a popular standard gives a means for not doing this: http://jsonapi.org/format/#fetching-sparse-fieldsets http://jsonapi.org/format/#fetching-sparse-fieldsets