From e9e4ab3b8412985dd9a732f7d832e1bb4510a402 Mon Sep 17 00:00:00 2001 From: Adrien FIGARD Date: Tue, 6 Aug 2024 09:14:21 +0200 Subject: [PATCH] :sparkles: Display operation version --- .../patches/@omnigraph+json-schema+0.97.4.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/graphql-mesh/patches/@omnigraph+json-schema+0.97.4.patch b/packages/graphql-mesh/patches/@omnigraph+json-schema+0.97.4.patch index ddcb133..c555ae7 100644 --- a/packages/graphql-mesh/patches/@omnigraph+json-schema+0.97.4.patch +++ b/packages/graphql-mesh/patches/@omnigraph+json-schema+0.97.4.patch @@ -1,3 +1,15 @@ +diff --git a/node_modules/@omnigraph/json-schema/cjs/addExecutionLogicToComposer.js b/node_modules/@omnigraph/json-schema/cjs/addExecutionLogicToComposer.js +index 9bbb265..491eb4c 100644 +--- a/node_modules/@omnigraph/json-schema/cjs/addExecutionLogicToComposer.js ++++ b/node_modules/@omnigraph/json-schema/cjs/addExecutionLogicToComposer.js +@@ -49,6 +49,7 @@ async function addExecutionDirectivesToComposer(name, { schemaComposer, logger, + >**Method**: \`${operationConfig.method}\` + >**Base URL**: \`${endpoint}\` + >**Path**: \`${operationConfig.path}\` ++>**Version**: \`${name.split('@')[1]}\` + ${operationConfig.description || ''} + `; + } diff --git a/node_modules/@omnigraph/json-schema/cjs/addRootFieldResolver.js b/node_modules/@omnigraph/json-schema/cjs/addRootFieldResolver.js index 8006747..dfc6825 100644 --- a/node_modules/@omnigraph/json-schema/cjs/addRootFieldResolver.js