5 ms·
This looks like it has a shot at being a better developer experience than Relay while still encouraging the use of nested queries (unlike clients like Apollo an
by atom_arranger 5y ago
This looks like it has a shot at being a better developer experience than Relay while still encouraging the use of nested queries (unlike clients like Apollo and urql). Nice.
- zwily 5y agoHow do Apollo and urql discourage using nested queries?
- atom_arranger 5y agoYou can’t pass along the result (not exactly but that’s how it looks) of a query to a component and query more things on it. An example might be something like, you have a page showing a user, and you have a ProfilePicture component with certain data requirements (e.g. get picture at 100X100). It would be nice if you could pass down the user and have the ProfilePicture component query the data it needs, with this being merged into the parent request. In Relay this kind of thing can be done with useFragment. In this solution it seems you could just pass the user. Apollo/urql don’t support this pattern, everything must be in one top level query, or multiple queries (bad perf).