What is the difference between withApollo and graphql?

Asked

Viewed 14 times

0

In some React projects, I have two situations that seem to have similar purposes, but I don’t know exactly how each reacts to a graphQL call, a Mutation call, or a simple restful API call:

Both are internal methods of the same client Apollo.

import { withApollo, compose } from 'react-apollo'

import { graphql, compose } from 'react-apollo'
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.