Create a new ApolloClient

    0

    5

    graphqlapollo
    GraphQL and JavaScript

    Create a new ApolloClient

    Shortcut: graphql.newclient

    import { ApolloClient, InMemoryCache } from '@apollo/client';
    
    const client = new ApolloClient({
      // Provide required constructor fields
      cache: new InMemoryCache(),
      uri: 'https//url/to/graphql/endpoint',
    });
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.