Just learning about serializers and was wondering what's going on under the hood. Does it actually change your db query or do serializers just wrap around your model and then format the data nicely before passing it to your controller?
Normally, no change is made to any db query. Instead, the model handles querying the db for data and instantiating an object, then the serializer uses that instance and your serialization logic to format a response that the controller renders. Note that you can also serialize POROs.