microfiber
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -370,2 +370,25 @@ "use strict"; | ||
try { | ||
// If we are removing a special type like a Query or Mutation or Subscription | ||
// then there's some special stuff to do | ||
if ((0, _etc.typesAreSame)(this.getQueryType() || {}, { | ||
kind, | ||
name | ||
})) { | ||
delete this.queryTypeName; | ||
delete this.schema.queryType; | ||
} else if ((0, _etc.typesAreSame)(this.getMutationType() || {}, { | ||
kind, | ||
name | ||
})) { | ||
delete this.mutationTypeName; | ||
delete this.schema.mutationType; | ||
} else if ((0, _etc.typesAreSame)(this.getSubscriptionType() || {}, { | ||
kind, | ||
name | ||
})) { | ||
delete this.subscriptionTypeName; | ||
delete this.schema.subscriptionType; | ||
} // Do this *after* the special stuff above, if necessary | ||
delete this.schema.types[typeIndex]; | ||
@@ -372,0 +395,0 @@ delete this.typeToIndexMap[typeKey]; |
{ | ||
"name": "microfiber", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A library to query and manipulate GraphQL Introspection Query results in some useful ways.", | ||
@@ -53,3 +54,3 @@ "author": "Chris Newhouse", | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.5", | ||
"@babel/core": "^7.17.8", | ||
"@babel/preset-env": "^7.16.11", | ||
@@ -56,0 +57,0 @@ "@babel/register": "^7.17.0", |
39659
889