-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Description
In the code here:
json-api-serializer/lib/JSONAPISerializer.js
Line 582 in 0c7588b
data: this.serializeRelationship(rOptions.type, data[relationshipKey], this.schemas[rOptions.type][schema], included, extraData), |
Could this change from:
data: this.serializeRelationship(rOptions.type, data[relationshipKey], this.schemas[rOptions.type][schema], included, extraData),
to:
data: this.serializeRelationship(rOptions.type, _.get(data, relationshipKey), this.schemas[rOptions.type][schema], included, extraData),
We have a rather obscure data model where there is a relationship effectively contained under tags.users
but I cannot currently specify this as an alternativeKey
as a path is not allowed.