UNPKG

create-aelf-dapp

Version:

Create aelf Dapp based on Next.js with one command

20 lines (17 loc) 373 B
import { ApolloClient, InMemoryCache, gql } from '@apollo/client'; const createApolloClient = () => { return new ApolloClient({ uri: 'https://countries.trevorblades.com', cache: new InMemoryCache(), }); }; export default createApolloClient; export const queryCountries = gql` query Countries { countries { code name emoji } } `;