I have a problem with mirage.
I am defining a serializer extending ActiveModelSerializer
with serializeIds: 'always'
, in this case the model is serialized with the relations models ids.
But when i want include some model in the serialized content i use include: ['someModel']
, in that case the someModel
is included succesfully, but the ids of the rest of relationships are ignored.
How can i include the ids too?
Aucun commentaire:
Enregistrer un commentaire