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
when the types are generated, I cannot find the result types for my query and mutation results from the hooks that would be populated into the data variable as in the query that returns, let's say, User entities as an Array.
in this example, it is not clear what type the data variable has. I need it to pass it down to other components in react native using apollo client for gql operations.
It would make sense for this type to be Partial<User>[] because this type could be returned also by other users that return partial data. This is especially important for nested entities that might also be partial as a result of a query or mutation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
when the types are generated, I cannot find the result types for my query and mutation results from the hooks that would be populated into the data variable as in the query that returns, let's say,
User
entities as an Array.in this example, it is not clear what type the
data
variable has. I need it to pass it down to other components in react native using apollo client for gql operations.It would make sense for this type to be
Partial<User>[]
because this type could be returned also by other users that return partial data. This is especially important for nested entities that might also be partial as a result of a query or mutation.Thank you for any hints!
Beta Was this translation helpful? Give feedback.
All reactions