How to provide a header to the schema array? graphql.config.js #2983
Unanswered
ollebergkvist
asked this question in
Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I provide a header to a schema?
The docs only mention how to structure the config object with the header for the URL but not for the schema.
So currently I can execute queries, but I don't get any IntelliSense, as the schema is protected...
module.exports = { projects: { app: { schema: ["https://my-domain.myshopify.com/api/2022-10/graphql.json"], documents: ["**/*.{graphql,js,ts,jsx,tsx}", "my/fragments.graphql"], extensions: { endpoints: { default: { url: "https://my-domain.myshopify.com/api/2022-10/graphql.json", headers: { "X-Shopify-Storefront-Access-Token": "...token", }, }, }, }, }, }, };
Beta Was this translation helpful? Give feedback.
All reactions