I found that using inclusions in the controller worked for me, but you have to be careful that your serializer object does not include relationships that are not included in include.
I also found that if you specify a one-to-one relationship, for example
has_one :country, embed: :ids, include: false
he will retrieve another object, even if he does not need it. Instead, I replaced it with:
attributes :country_id
I am using Serializer Active Model v0.8.3
source share