Still having the same issue on 2021-10
here is my Node js client.js file
import ApolloClient from "apollo-boost";
export const createClient = (shop, accessToken) => {
return new ApolloClient({
uri: `https://${shop}/admin/api/2021-10/graphql.json`,
request: operation => {
operation.setContext({
headers: {
"X-Shopify-Access-Token": accessToken,
"User-Agent": `shopify-app-node ${process.env.npm_package_version
} | Shopify App CLI`
}
});
}
});
};