This is one of those things that is not clear anywhere, and you have to navigate the Discuss to find it in different places.
Basically:
async function addTestWebhook({ graphql, authHeader }) {
...
await graphql(
QUERY_STRING,
VARIABLES_OBJECT,
{ key: authHeader.key, value: authHeader.value }
);
}
@amaster507 - something for the docs…
J