JSON:API integration with TanStack DB #425
-
Hi DB team, Thank you for building such an exciting library! I'm working with a JSON:API compliant backend (https://jsonapi.org/). On a quick look, TanStack DB seems to be really good fit for such structured data. I currently use TanStack Query to fetch and deserialize JSON:API responses (e.g., handling Has the team considered JSON:API's resource-based structure like compound documents or sparse fieldsets when designing collections? For example, how might we map JSON:API resources and relationships to collections for reactive queries? Are there plans for a JSON:API specific adapter? Any insights or examples on integrating TanStack DB with a JSON:API backend would be incredibly helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh interesting! I haven't used JSON:API really so not entirely sure how this mapping would work but that definitely be interesting to explore. I have no plans to do this personally and don't know of anything who's talked about this but if you want to pick it up and explore it & if it works well, contribute a collection, I'm sure there's others that'd like it as well. |
Beta Was this translation helpful? Give feedback.
Oh interesting! I haven't used JSON:API really so not entirely sure how this mapping would work but that definitely be interesting to explore. I have no plans to do this personally and don't know of anything who's talked about this but if you want to pick it up and explore it & if it works well, contribute a collection, I'm sure there's others that'd like it as well.