import { ApolloClient , InMemoryCache , gql } from '@apollo/client' ; const client = new ApolloClient ( { uri : 'https://48p1r2roz4.sse.codesandbox.io' , cache : new InMemoryCache ( ) , } ) ; export const getRates = async ( ) => { return client . query ( { query : gql `
        query GetRates {
          rates(currency: "USD") {
            currency
          }
        }
      ` , fetchPolicy : 'network-only' , } ) . catch ( ( e ) => console . log ( e . message ) ) ; } ;