From 67432fa0c0594e883793ad85e9b12e1d7eea7cb0 Mon Sep 17 00:00:00 2001 From: Samuel Collard Date: Fri, 13 Sep 2024 11:24:27 -0500 Subject: [PATCH] Add client name and version headers to requests (#10) --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index ecbd84c..80e7e16 100644 --- a/src/index.ts +++ b/src/index.ts @@ -70,6 +70,8 @@ export default async (req: Request, context: Context) => { context: { headers: { "Content-Type": "application/json", + "apollographql-client-name": "custom-checks-example", + "apollographql-client-version": "0.0.1", "x-api-key": apiKey } } @@ -127,6 +129,8 @@ export default async (req: Request, context: Context) => { context: { headers: { "Content-Type": "application/json", + "apollographql-client-name": "custom-checks-example", + "apollographql-client-version": "0.0.1", "x-api-key": apiKey } }