-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
Not everyone uses the "embed" functionality of ActiveModel::Serializers, and it would be nice if postgres_ext-serializers could support associations in this case (and in the meantime, print a warning or include information in the readme about this).
In theory, it shouldn't be too difficult, as it just requires a nested row_to_json (for has_one) or json_agg (for has_many) on the sub serializers query and the where clause. Much of the code for this already exists, but it's just focused on putting the embedded object in root rather than nested within other objects.
Would there be support for this extension of postgres_ext-serializers?
Reactions are currently unavailable