vt-elixir / ja_serializer

JSONAPI.org Serialization in Elixir.
Other
640 stars 148 forks source link

don't fetch relationships twice #273

Open paulswartz opened 6 years ago

paulswartz commented 6 years ago

For some implementations of relationships/2, it can be expensive to calculate. For the top level, we've already calculated the relationships as a part of the %ResourceObject{} so we don't need to do it again.