From a0dd02ec076f1471fdc7a45afe26cf2314d06357 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 20 Nov 2019 18:07:33 +0530 Subject: [PATCH] fix: lint --- pages/graphql.vue | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 35673aa14..f6bdcebe2 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -185,30 +185,30 @@ export default { this.subscriptionFields = sFields; } - const typeMap = schema.getTypeMap(); - const types = []; + const typeMap = schema.getTypeMap(); + const types = []; - const queryTypeName = schema.getQueryType() - ? schema.getQueryType().name - : ""; - const mutationTypeName = schema.getMutationType() - ? schema.getMutationType().name - : ""; - const subscriptionTypeName = schema.getSubscriptionType() - ? schema.getSubscriptionType().name - : ""; + const queryTypeName = schema.getQueryType() + ? schema.getQueryType().name + : ""; + const mutationTypeName = schema.getMutationType() + ? schema.getMutationType().name + : ""; + const subscriptionTypeName = schema.getSubscriptionType() + ? schema.getSubscriptionType().name + : ""; - for (const type in typeMap) { - if ( - !typeMap[type].name.startsWith("__") && - ![queryTypeName, mutationTypeName, subscriptionTypeName].includes( - typeMap[type].name - ) && - typeMap[type] instanceof gql.GraphQLObjectType - ) { - types.push(typeMap[type]); - } + for (const type in typeMap) { + if ( + !typeMap[type].name.startsWith("__") && + ![queryTypeName, mutationTypeName, subscriptionTypeName].includes( + typeMap[type].name + ) && + typeMap[type] instanceof gql.GraphQLObjectType + ) { + types.push(typeMap[type]); } + } this.gqlTypes = types; this.$nuxt.$loading.finish();