-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Milestone
Description
When I ask for /parents?include=children.line_items I get children in response in the included array, but I don't get children in the data.relationshipds - it's still empty array without IDs.
Steps to Reproduce the Problem
class ChildSerializer < Api::V2::BaseSerializer
include FastJsonapi::ObjectSerializer
has_many :line_items, serializer: ChildLineItemSerializer
end
class ChildLineItemSerializer
include FastJsonapi::ObjectSerializer
end
class ParentLineItemSeriazlier
include FastJsonapi::ObjectSerializer
end
class ParentSerializer < Api::V2::BaseSerializer
include FastJsonapi::ObjectSerializer
has_many :children, serializer: ChildSerializer, lazy_load_data: true
has_many :line_items, serializer: ParentLineItemSeriazlier
endmelcha, lovro-bikic, kln, aglio, williantenfen and 2 more
Metadata
Metadata
Assignees
Labels
No labels