Skip to content

how to handle non array api responses #324

Answered by KyleAMathews
tigawanna asked this question in Q&A
Discussion options

You must be logged in to vote

👋 Thanks for the questions!

On returning arrays — this is necessary as DB has tighter data requirements than Query. A query cache can have anything while a collection is an array of typed objects.

On storing other metadata. Perhaps just manually write it to the query cache? We could perhaps support the select API as well — how does Query normally store the whole response? It's on a different key than the selected response? I'm sure we could do the same thing then.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tigawanna
Comment options

Answer selected by tigawanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants