This relatonship aggregates the results from each of its sub-relations, with the value returned in either the data member of its relationship field, or in a relationship endpoint.
The field is writeable as long as:
every sub-relationship is writeable (implements FillableToMany); and
each resource type that can be in the relationships maps to a single sub-relation.
Include paths also work, with the include paths only being applied to the sub-relations for which the include path is valid.
Adds a
MorphToMany
relation field, that effectively wraps multiple relation fields, for example:This relatonship aggregates the results from each of its sub-relations, with the value returned in either the
data
member of its relationship field, or in a relationship endpoint.The field is writeable as long as:
FillableToMany
); andInclude paths also work, with the include paths only being applied to the sub-relations for which the include path is valid.