2.2 Setup Apollo Client
Step 1: Install the BlueBase Apollo plugin
yarn add --dev @apollo/client @bluebase/plugin-apollo graphqlStep 2: Use the plugin
import BlueBasePluginApollo from '@bluebase/plugin-apollo';
import BlueBasePluginJsonSchemaComponents from '@bluebase/plugin-json-schema-components';
import BlueBasePluginLauncher from '@bluebase/plugin-launcher';
import BlueBasePluginMaterialUI from '@bluebase/plugin-material-ui';
import BlueBasePluginReactRouter from '@bluebase/plugin-react-router';
import BlueBasePluginResponsiveGrid from '@bluebase/plugin-responsive-grid';
import BlueBasePluginSettingsApp from '@bluebase/plugin-settings-app';
import { MaterialCommunityIcons } from '@bluebase/plugin-vector-icons';
import Plugin from './src';
export const plugins = [
BlueBasePluginApollo,
BlueBasePluginJsonSchemaComponents,
BlueBasePluginLauncher,
BlueBasePluginMaterialUI,
BlueBasePluginReactRouter,
BlueBasePluginResponsiveGrid,
MaterialCommunityIcons,
Plugin,
BlueBasePluginSettingsApp,
];Step 3: Create Apollo Configs
Step 4: Use the configs
Step 5: Bypass Apollo Bug
Last updated
Was this helpful?