4 ms·
Apollo link rest looks handy. Resolving it server-side would be even better. Is it more for client-side resolution?
by bpicolo 9y ago
Apollo link rest looks handy. Resolving it server-side would be even better. Is it more for client-side resolution?
- biscarch 9y agolink-rest fits the use case where you might not be able to transition the REST endpoint to be behind a GraphQL API (and thus be server-side resolvable which is definitely preferable) due to organizational or other concerns.
- bpicolo 9y agoRight, but it would be great to take full advantage of the existing rest endpoint server-side. With that you don't even necessarily need to build GraphQL apis at all, and sort of get the best of both worlds.
- aarohmankad 9y agoI believe there's a relatively simple ssrMode flag in Apollo Client 2.0 that may help your use case here?
- bpicolo 9y agoMight work. Context here is I prototyped a json dsl to do similar graph-like resolving right on top of a python app as a wsgi middleware. Worked pretty well right on the metal. With this sort of graphql extension, having generic query power for restful clients is awesome. TBH I think that's pretty great compared to baking graphql clients.