@graphql-tools/merge
Advanced tools
Comparing version 5.0.1-alpha-63acff1.0 to 5.0.1-alpha-6bafa2b.0
@@ -910,6 +910,6 @@ 'use strict'; | ||
function makeSchema({ resolvers, typeDefs, extensions, }, config) { | ||
const schema$1 = typeof typeDefs === 'string' ? graphql.buildSchema(typeDefs, config) : graphql.buildASTSchema(typeDefs, config); | ||
let schema$1 = typeof typeDefs === 'string' ? graphql.buildSchema(typeDefs, config) : graphql.buildASTSchema(typeDefs, config); | ||
// add resolvers | ||
if (resolvers) { | ||
schema.addResolversToSchema({ | ||
schema$1 = schema.addResolversToSchema({ | ||
schema: schema$1, | ||
@@ -925,3 +925,3 @@ resolvers, | ||
if (config.logger) { | ||
schema.addErrorLoggingToSchema(schema$1, config.logger); | ||
schema$1 = schema.addErrorLoggingToSchema(schema$1, config.logger); | ||
} | ||
@@ -928,0 +928,0 @@ // use schema directives |
@@ -906,6 +906,6 @@ import { mergeDeep, compareNodes, isNotEqual, printSchemaWithDirectives, createSchemaDefinition, asArray, getResolversFromSchema, SchemaDirectiveVisitor } from '@graphql-tools/utils'; | ||
function makeSchema({ resolvers, typeDefs, extensions, }, config) { | ||
const schema = typeof typeDefs === 'string' ? buildSchema(typeDefs, config) : buildASTSchema(typeDefs, config); | ||
let schema = typeof typeDefs === 'string' ? buildSchema(typeDefs, config) : buildASTSchema(typeDefs, config); | ||
// add resolvers | ||
if (resolvers) { | ||
addResolversToSchema({ | ||
schema = addResolversToSchema({ | ||
schema, | ||
@@ -921,3 +921,3 @@ resolvers, | ||
if (config.logger) { | ||
addErrorLoggingToSchema(schema, config.logger); | ||
schema = addErrorLoggingToSchema(schema, config.logger); | ||
} | ||
@@ -924,0 +924,0 @@ // use schema directives |
{ | ||
"name": "@graphql-tools/merge", | ||
"version": "5.0.1-alpha-63acff1.0", | ||
"version": "5.0.1-alpha-6bafa2b.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -9,4 +9,4 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/schema": "5.0.1-alpha-63acff1.0", | ||
"@graphql-tools/utils": "5.0.1-alpha-63acff1.0", | ||
"@graphql-tools/schema": "5.0.1-alpha-6bafa2b.0", | ||
"@graphql-tools/utils": "5.0.1-alpha-6bafa2b.0", | ||
"tslib": "1.11.1" | ||
@@ -13,0 +13,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263269
+ Added@graphql-tools/schema@5.0.1-alpha-6bafa2b.0(transitive)
+ Added@graphql-tools/utils@5.0.1-alpha-6bafa2b.0(transitive)
- Removed@graphql-tools/schema@5.0.1-alpha-63acff1.0(transitive)
- Removed@graphql-tools/utils@5.0.1-alpha-63acff1.0(transitive)