Closed stefanwub closed 3 years ago
Hmmm... unfortunately this isn't supported by the version of the encoder we're on. I'm not even sure if it's supported by the latest version of the encoder that we plan to upgrade to.
For the meantime you'll have to use meta at the relationship level. I'll leave this issue open and if it's not supported when we upgrade the encoder, I'll have to open an issue in that repo to get it added (or do a custom extension of the encoder).
Closing this as it is supported in the new laravel-json-api/laravel
package:
https://laraveljsonapi.io/docs/1.0/resources/meta.html#identifier-meta
Is there a way to include a meta member to the resource identifier object?
Expected outcome:
I manage to add meta to the relationship object according to the code from the documentation. See below. But I couldn't find a way to add this meta to each data member in the relationship array.
The JSON API specifications says: A “resource identifier object” MAY also include a meta member, whose value is a meta object that contains non-standard meta-information. (https://jsonapi.org/format/#document-resource-identifier-objects).
Would be great if this could be implemented!