graphql-compose-aws
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -13,4 +13,9 @@ "use strict"; | ||
} | ||
const typename = `${name}Input`; | ||
if (graphql_compose_1.schemaComposer.has(typename)) { | ||
console.warn(`Type ${typename} already exists. It seems that aws-sdk has types with same names. Reusing already existed type for GraphQL schema.`); | ||
return graphql_compose_1.schemaComposer.get(typename); | ||
} | ||
const itc = graphql_compose_1.schemaComposer.createInputTC({ | ||
name: `${name}Input`, | ||
name: typename, | ||
fields, | ||
@@ -17,0 +22,0 @@ }); |
{ | ||
"name": "graphql-compose-aws", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "AWS Cloud API via GraphQL", | ||
@@ -31,7 +31,6 @@ "files": [ | ||
"@types/express": "4.17.12", | ||
"@types/express-graphql": "^0.9.0", | ||
"@types/jest": "26.0.23", | ||
"@typescript-eslint/eslint-plugin": "4.25.0", | ||
"@typescript-eslint/parser": "4.25.0", | ||
"aws-sdk": "2.918.0", | ||
"aws-sdk": "2.924.0", | ||
"eslint": "7.27.0", | ||
@@ -38,0 +37,0 @@ "eslint-config-airbnb-base": "14.2.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54765
22
664