From 4e75f88b0268285c5d8113ef22b15cb4fad80f4d Mon Sep 17 00:00:00 2001 From: Florian Nagel Date: Fri, 7 Sep 2018 12:58:14 +0200 Subject: [PATCH] Fix template strings usage in guessSchemaByRootField error message (#936) * Fix template strings usage in guessSchemaByRootField error message * Changelog update --- CHANGELOG.md | 5 +++-- src/stitching/mergeSchemas.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8825b8985ca..ce80e488788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Change log -### vNEXT +### 4.0.0 -* ... +* Fix template strings usage in guessSchemaByRootField error message.
+ [@nagelflorian](https://github.com/nagelflorian) in [#936](https://github.com/apollographql/graphql-tools/pull/936) ### v3.1.1 diff --git a/src/stitching/mergeSchemas.ts b/src/stitching/mergeSchemas.ts index d1a161dde07..83bb0cbd93d 100644 --- a/src/stitching/mergeSchemas.ts +++ b/src/stitching/mergeSchemas.ts @@ -351,7 +351,7 @@ function guessSchemaByRootField( } } throw new Error( - `Could not find subschema with field \`{operation}.{fieldName}\``, + `Could not find subschema with field \`${operation}.${fieldName}\``, ); }