Fantastic piece of work guys. Would this work with...
# prisma-whats-new
p
Fantastic piece of work guys. Would this work with clients like Apollo or Relay, or as a standalone client?
n
Great question, we probably should have touched on this in the article as well! GraphQL bindings are not necessarily intented to be (but certainly can be) used from the frontend. When you do so, it basically is nothing but a wrapper for
fetch
, so it won’t integrate with Apollo/Relay out of the box. If you’re using static bindings, you’ll still get the benefit of autocompletion and compile-time error checking, but it will require a build step (similar to Relay actually). I think integrating a binding with a GraphQL client is a super interesting idea though and would love to see if/how a potential integration might look like 🙂