Why is Shopify.Utils.graphqlProxy not functioning properly?

Hi

When calling graphql, this module does not work.

router.post(
“/graphql”,
// Requests to /graphql must have an online session
// Shopify.Utils.graphqlProxy only works for accessMode: “online” sessions
verifyRequest({ returnHeader: true, authRoute: “/online/auth” }),
async (ctx) => {
await Shopify.Utils.graphqlProxy(ctx.req, ctx.res);
}
);


My merchant page code is

import { useQuery, useMutation } from “@apollo/react-hooks”;

const QUERY_SCRIPTTAGS = gqlquery { scriptTags(first: 5) { edges { node { id src displayScope } } } };

const { loading, error, data } = useQuery(QUERY_SCRIPTTAGS);

if (loading) return

Loading…
;
if (error) return
{error.message}
;

return (

If you know a solution, please let me know it.

Thank you.