api2go
api2go copied to clipboard
Dealing with large numbers of relations
I have a scenario where I have an item with many (like 10s of thousands) relations. I do want them exposed, but not all in one GET as that would be a huge payload. Is there a way to do this using this library? Actually, is this possible in the jsonapi (I know, not really your problem). From what I see, this cannot be captured with any sort of paging that jsonapi offers....
Thanks, Glen
There was a draft for a bulk extension IIRC https://github.com/json-api/json-api/blob/9c7a03dbc37f80f6ca81b16d444c960e96dd7a57/extensions/index.md
But they are in the process of rewriting this so no support at the moment...
There is always the possibility to simply set the field with the relations to ignore. But do you need those relations later on?