@anchan828/gen-graphql-merge-schema
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -9,4 +9,7 @@ "use strict"; | ||
const merge_graphql_schemas_1 = require("merge-graphql-schemas"); | ||
const service_1 = require("./service"); | ||
exports.mergeTypes = (types, options) => { | ||
options = deepmerge({ orderOptions: {}, whereOptions: {}, relayOptions: {} }, options || {}); | ||
const service = new service_1.MergeSchemaService(); | ||
types.forEach(type => service.cacheDescriptions(type)); | ||
let result = gen_graphql_order_schema_1.genOrderTypes(merge_graphql_schemas_1.mergeTypes([...types, `type Query`], { | ||
@@ -17,3 +20,4 @@ all: true, | ||
result = gen_graphql_relay_schema_1.genRelayTypes(result, options.relayOptions); | ||
service.setDescriptions(result); | ||
return graphql_1.printSchema(graphql_1.buildASTSchema(result)); | ||
}; |
{ | ||
"name": "@anchan828/gen-graphql-merge-schema", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "merge multiple schema. merge-graphql-schemas based.", | ||
@@ -43,3 +43,3 @@ "author": "anchan828 <anchan828@gmail.com>", | ||
"homepage": "https://github.com/anchan828/gen-graphql-schema/tree/master/packages/merge-schema#readme", | ||
"gitHead": "4d0541c18b2a963f7c3fd9ac3c28292dff9b6a40" | ||
"gitHead": "b33dfd6575f825608d9b5fbf8d662c163c29f4d8" | ||
} |
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
8763
7
68