Open Konard opened 1 year ago
const { gql } = require("@apollo/client");
const { generateApolloClient } = require("@deep-foundation/hasura/client");
const apolloClient = generateApolloClient({
path: `3006-deepfoundation-dev-d3lwbampmxc.ws-eu96b.gitpod.io/gql`,
ssl: true,
secret: 'myadminsecretkey',
ws: true
});
const fn = async() => {
const result = await apolloClient.query({ query: gql`query {links{id}}`})
console.dir(result);
}
fn();
Using node test.js
command it just works. But if run the same code inside tests, it gives ApolloError: TextDecoder is not defined