fix: lint
This commit is contained in:
@@ -185,30 +185,30 @@ export default {
|
|||||||
this.subscriptionFields = sFields;
|
this.subscriptionFields = sFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
const typeMap = schema.getTypeMap();
|
const typeMap = schema.getTypeMap();
|
||||||
const types = [];
|
const types = [];
|
||||||
|
|
||||||
const queryTypeName = schema.getQueryType()
|
const queryTypeName = schema.getQueryType()
|
||||||
? schema.getQueryType().name
|
? schema.getQueryType().name
|
||||||
: "";
|
: "";
|
||||||
const mutationTypeName = schema.getMutationType()
|
const mutationTypeName = schema.getMutationType()
|
||||||
? schema.getMutationType().name
|
? schema.getMutationType().name
|
||||||
: "";
|
: "";
|
||||||
const subscriptionTypeName = schema.getSubscriptionType()
|
const subscriptionTypeName = schema.getSubscriptionType()
|
||||||
? schema.getSubscriptionType().name
|
? schema.getSubscriptionType().name
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
for (const type in typeMap) {
|
for (const type in typeMap) {
|
||||||
if (
|
if (
|
||||||
!typeMap[type].name.startsWith("__") &&
|
!typeMap[type].name.startsWith("__") &&
|
||||||
![queryTypeName, mutationTypeName, subscriptionTypeName].includes(
|
![queryTypeName, mutationTypeName, subscriptionTypeName].includes(
|
||||||
typeMap[type].name
|
typeMap[type].name
|
||||||
) &&
|
) &&
|
||||||
typeMap[type] instanceof gql.GraphQLObjectType
|
typeMap[type] instanceof gql.GraphQLObjectType
|
||||||
) {
|
) {
|
||||||
types.push(typeMap[type]);
|
types.push(typeMap[type]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.gqlTypes = types;
|
this.gqlTypes = types;
|
||||||
|
|
||||||
this.$nuxt.$loading.finish();
|
this.$nuxt.$loading.finish();
|
||||||
|
|||||||
Reference in New Issue
Block a user