- Notifications
You must be signed in to change notification settings - Fork302
Including resources not directly connected#954
SafaAlfulaij started this conversation inGeneral
-
Sometimes I'd like to include a resource (notification for example) to a response without it being linked to any of the resource, or the linkage wil be hard. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
REST and JSON:API does not support something like this - if you have such use case you should consider usingGraphQL. This said if you have a simple case where one resource should always return the same non-related resources you could useSerializerMethodResourceRelatedField. |
BetaWas this translation helpful?Give feedback.
All reactions
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment