Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nextjs apollo client setting

// ./apollo-client.js

import { ApolloClient, InMemoryCache } from "@apollo/client";

const client = new ApolloClient({
    uri: "https://countries.trevorblades.com",
    cache: new InMemoryCache(),
});

export default client;
Source by www.apollographql.com #
 
PREVIOUS NEXT
Tagged: #nextjs #apollo #client #setting
ADD COMMENT
Topic
Name
1+4 =