@Benjy1979 wrote:
Hi,
When you do a custom serializer I can’t understand why it assumes that the serializer will be the same for each type of call. It hides what type of requestType it is. You really need a serializeCreateRecord, serializeDeleteRecord, serializeFindAll etc. in order for it to be flexible to the server’s requirements.
The whole point of serializers were to customise the responses to suit a third party server that maybe you can’t change. Yet 9/10 you end up having to just bin off the serializer and do the custom serialization work in the adapter instead because it is only the adapter that lets you identify what request you’re in (e.g via the createRecord, findAll, deleteRecord, findRecord hooks), I find.
Am I doing anything wrong here or missing something?
Posts: 3
Participants: 2