From 6ac39162426f2a11dcfa2ec9e82d6f9187f44f23 Mon Sep 17 00:00:00 2001 From: Alexander Roberts Date: Sun, 28 Jan 2018 03:20:32 -0600 Subject: [PATCH] [Loader] Fix: Track refs to NonNullType --- loader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loader.js b/loader.js index d5ad20fa..8f200902 100644 --- a/loader.js +++ b/loader.js @@ -75,6 +75,10 @@ module.exports = function(source) { if (type.kind === "NamedType") { refs.add(type.name.value); } + + if (type.kind === 'NonNullType' && type.type.kind === 'NamedType') { + refs.add(type.type.name.value) + } } if (node.selectionSet) {