How to use @8base/apollo-client - 1 common examples

To help you get started, we’ve selected a few @8base/apollo-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github christiannwamba / calendar-app / src / index.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import { EightBaseApolloClient } from '@8base/apollo-client';

import { ApolloProvider } from 'react-apollo-hooks';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';

const URI = 'https://api.8base.com/cjvuk51i0000701s0hvvcbnxg';

const apolloClient = new EightBaseApolloClient({
  uri: URI,
  withAuth: false
});

ReactDOM.render(
  
    
  ,
  document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();

@8base/apollo-client

The Apollo Client library contains an extended implementation of [ApolloClient](https://www.apollographql.com/docs/react/api/apollo-client.html) that includes several links to work with 8base services.

MIT
Latest version published 3 years ago

Package Health Score

43 / 100
Full package analysis

Popular @8base/apollo-client functions