Third param of JSONAPISerializer.shouldSerializeHasMany
documented as relationType instead of RelationshipMeta
#7996
Labels
As a part of #4279 the method
shouldSerializeHasMany
on JSON API Serializer was made public. However, the documented signature doesn't correctly reflect the thirdrelation
parameter and its type. Here's a link to the code where you can see that the third parameter isrelation
(notrelationType
as per docs):which has in fact a type called
RelationshipMeta
described here.I couldn't find a definition of RelationshipMeta in the docs, but since the documentation is misleading - what would be the correct way to address this issue? As a drive-by change the description for Model.inverseFor could also be updated along with:
inverseFor
as the return type should also be RelationshipMetaThe last call should be made with parameters slightly reordered (see above):
The text was updated successfully, but these errors were encountered: