From 39967f124255969a3e8acef17478f679795b67a5 Mon Sep 17 00:00:00 2001 From: Ryan Perry-Nguyen Date: Tue, 9 Jul 2024 23:30:18 -0400 Subject: [PATCH] chore: fix kwargs for example app --- examples/simple-api/schema.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/simple-api/schema.rb b/examples/simple-api/schema.rb index fb1a60b..273c1b4 100644 --- a/examples/simple-api/schema.rb +++ b/examples/simple-api/schema.rb @@ -41,7 +41,12 @@ def post(input:, test:) class Schema < GraphQL::Schema query QueryType - use(GraphQL::Hive, { buffer_size: 2, token: 'YOUR_TOKEN', debug: true, reporting: { author: 'Charly Poly', commit: '109bb1e748bae21bdfe663c0ffc7e830' }, client_info: proc { |context| - { name: context[:client_name], version: context[:client_version] } - } }) + use( + GraphQL::Hive, + buffer_size: 2, + token: 'YOUR_TOKEN', + debug: true, + reporting: { author: 'Charly Poly', commit: '109bb1e748bae21bdfe663c0ffc7e830' }, + client_info: proc { |context|{ name: context[:client_name], version: context[:client_version] }} + ) end