How to change the Shopify GraphQL API Version using an App Proxy URL

I have a custom app using the Shopify GraphQL API via an App Proxy URL.

The frontend is built using React,

I am using the ApolloClient from @Apollo /client to execute GraphQL Queries.

I need to change the API Version the app uses, but cannot find any documentation/instructions on how to change this.‘’

The response headers for all my API Requests are returning x-shopify-api-version: 2021-10.

I have tried changing my Apollo Client to be

const client = new ApolloClient({
    version: '2022-07',
    fetchOptions: {
        credentials: 'include',
    },
    headers: {
        'x-shopify-api-version': '2022-07',
    },
});

but to no effect.

How can I change it to use 2022-07?

Hi @kwpx , have you seen this section of the API docs?

You should be able to specify the API version as part of the URL.