How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • import ApolloClient from 'apollo-boost'
    
    const client = new ApolloClient({
      request: (operation) => {
        const token = localStorage.getItem('token')
        operation.setContext({
          headers: {
            authorization: token ? `Bearer ${token}` : ''
          }
        })
      }
    })
    Docs
  • import ApolloClient from 'apollo-boost';
    
    const client = new ApolloClient({
      cacheRedirects: {
        Query: {
          dog: (_, { id }, { getCacheKey }) => getCacheKey({ id, __typename: 'Dog' })
        }
      }
    })
    Docs
  • import ApolloClient from 'apollo-boost';
    
    const client = new ApolloClient({
      uri: 'https://48p1r2roz4.sse.codesandbox.io',
    });
    Docs
  • import ApolloClient from "apollo-boost";
    
    const client = new ApolloClient({
      uri: "https://w5xlvm3vzz.lp.gql.zone/graphql"
    });
    Docs
  • import ApolloClient from 'apollo-boost';
    
    // the Apollo cache is set up automatically
    const client = new ApolloClient();
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples