jaydenseric / graphql-react

A GraphQL client for React using modern context and hooks APIs that is lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.
https://npm.im/graphql-react
MIT License
718 stars 22 forks source link

Does this work out of the box with ApolloServer? #13

Closed joelgetaction closed 6 years ago

joelgetaction commented 6 years ago

Hey, this looks great, thanks so much for making this available! I like how light and clear the API is and I like that it doesn't use TS. :-)

I'm currently using ApolloClient and ApolloServer (via apollo-server-express). ApolloServer seems to work really well but ApolloClient seems to have some serious bugs around caching ...

My Question: If I swap this out for ApolloClient, should graphql-react just work directly with ApolloServer without any server changes needed?

I ask because Relay seems to need a "RelayServer" so I'm avoiding that. I'd like to use graphql-react talking to ApolloServer and I'm not sure if that would work directly?

Sorry for filing this as an issue, I just wasn't sure how to ask this question otherwise (if there's a better way, please let me know) ...

Thanks again for all of your hard work on this! :-)

P.S. I will need to use this in ReactNative as well - do you see any reason why it wouldn't also work in RN? Thanks.

jaydenseric commented 6 years ago

If I swap this out for ApolloClient, should graphql-react just work directly with ApolloServer without any server changes needed?

Yes! It should work with any GraphQL server.

As for React Native, I'm not sure; probably. The file uploads part (via the extract-files dependency) supports it.