You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2023. It is now read-only.
There are several ways to handle this, but in your more complex use case, I recommend you receive the payload as a string using the non-generic method and then check your fields in the JSON response to figure out what to parse it to (similar to TypeScript).
The generic methods are there for convenience, but to support multiple types from the API, the easiest way is to parse the response string yourself.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How do I properly work on query that can return multiple response Types?
Thanks in advance
Fer
The text was updated successfully, but these errors were encountered: