Required parameter missing or invalid

Highlighted
Shopify Partner
3 0 2

When launching shopify's graphql request via apollo connection koa-shopify-graphql-proxy in the program, the prompt {"errors":{"query":"Required parameter missing or invalid"}}
code show as below:

const authLink = setContext((_, { headers }) => {
    headers = headers || {};
    headers['content-type'] = 'application/json';
    return {
        headers: headers
    }
});
this.$apollo.query({
            query: gql`query {
                shop {
                    name
                    primaryDomain {
                        url
                        host
                    }
                }
            }`
        }).then((res) => {
            console.log('Success', res)
        }).catch(err => {
            console.log('Error', err)
        })
Highlighted
Tourist
3 0 5

Did you solve it? Got same issue

Highlighted