From 3f2dd27385c70ce5e1112e3b7002cf9234a57120 Mon Sep 17 00:00:00 2001 From: Daniel Gut Date: Sat, 15 Dec 2018 12:11:07 +0100 Subject: [PATCH 1/3] add type name to information --- src/utilities/buildClientSchema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index 531036dca3..4f67490b4f 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -143,7 +143,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isInputType(type), - 'Introspection must provide input type for arguments.', + 'Introspection must provide input type for arguments. ' + inspect(type), ); return type; } @@ -154,7 +154,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isOutputType(type), - 'Introspection must provide output type for fields.', + 'Introspection must provide output type for fields. ' + inspect(type), ); return type; } From 1adfa77d6ac8acc82ce3160f573bed832b3f9674 Mon Sep 17 00:00:00 2001 From: Daniel Gut Date: Sat, 15 Dec 2018 12:16:16 +0100 Subject: [PATCH 2/3] fix lint error --- src/utilities/buildClientSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index 4f67490b4f..666a5d49d6 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -154,7 +154,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isOutputType(type), - 'Introspection must provide output type for fields. ' + inspect(type), + 'Introspection must provide output type for fields. ' + inspect(type), ); return type; } From b747bb4d9e84c546532b61725a3aa6220ee9c263 Mon Sep 17 00:00:00 2001 From: Daniel Gut Date: Mon, 14 Jan 2019 21:45:04 +0100 Subject: [PATCH 3/3] changed type error message --- src/utilities/buildClientSchema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index 666a5d49d6..ecea2bfe1a 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -143,7 +143,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isInputType(type), - 'Introspection must provide input type for arguments. ' + inspect(type), + 'Introspection must provide input type for arguments, but received: ' + inspect(type), ); return type; } @@ -154,7 +154,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isOutputType(type), - 'Introspection must provide output type for fields. ' + inspect(type), + 'Introspection must provide output type for fields, but received: ' + inspect(type), ); return type; }