From 59b0b7321f9ac3549a6735835673d67b9c8b7a51 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 22 Oct 2024 07:41:28 -0700 Subject: [PATCH] Fix GraphQL variables --- plugins/exporter-curl/src/index.ts | 10 +++++++++- plugins/exporter-curl/tests/index.test.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/exporter-curl/src/index.ts b/plugins/exporter-curl/src/index.ts index 5fdbdaf7..3c21682f 100644 --- a/plugins/exporter-curl/src/index.ts +++ b/plugins/exporter-curl/src/index.ts @@ -52,7 +52,7 @@ export async function pluginHookExport(_ctx: Context, request: Partial { bodyType: 'graphql', body: { query : '{foo,bar}', - variables: {a: 'aaa', b: 'bbb'}, + variables: '{"a": "aaa", "b": "bbb"}', }, }), ).toEqual(