This is an issue that stems from Bookshelf not returning relations if withRelated isn't specified on the query. It can be worked around by manually specifying the relations on the model, but unfortunately, there is an issue with the JSON API serializer that won't return a null data element for relations that have no attributes. Opened issues in both repositories.
This is an issue that stems from Bookshelf not returning relations if
withRelated
isn't specified on the query. It can be worked around by manually specifying the relations on the model, but unfortunately, there is an issue with the JSON API serializer that won't return anull
data element for relations that have no attributes. Opened issues in both repositories.