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
end
When I ask for
/parents?include=children.line_itemsI get children in response in theincludedarray, but I don't get children in thedata.relationshipds- it's still empty array without IDs.Steps to Reproduce the Problem