import { ApolloClient, InMemoryCache } from '@apollo/client';
      
      const client = new ApolloClient({
        // Provide required constructor fields
        cache: new InMemoryCache(),
        uri: 'https//url/to/graphql/endpoint',
      });
      
      Javascript language logo

      Create a new ApolloClient

      graphql
      apollo
      GraphQL and JavaScript

      Create a new ApolloClient

      Shortcut: graphql.newclient

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.