@pothos/plugin-sub-graph
Advanced tools
Comparing version 3.8.0 to 3.9.0
# Change Log | ||
## 3.9.0 | ||
### Minor Changes | ||
- 1ff66576: filter interfaces when building subgraph | ||
## 3.8.0 | ||
@@ -4,0 +10,0 @@ |
@@ -52,3 +52,3 @@ /* eslint-disable prefer-destructuring */ import './global-types.js'; | ||
...typeConfig, | ||
interfaces: () => typeConfig.interfaces.map((iface) => replaceType(iface, newTypes, typeConfig.name, subGraphs)), | ||
interfaces: () => typeConfig.interfaces.filter((iface) => newTypes.has(iface.name)).map((iface) => replaceType(iface, newTypes, typeConfig.name, subGraphs)), | ||
fields: this.filterFields(type, newTypes, subGraphs) | ||
@@ -55,0 +55,0 @@ })); |
@@ -104,3 +104,3 @@ /* eslint-disable prefer-destructuring */ "use strict"; | ||
...typeConfig, | ||
interfaces: ()=>typeConfig.interfaces.map((iface)=>(0, _util.replaceType)(iface, newTypes, typeConfig.name, subGraphs)), | ||
interfaces: ()=>typeConfig.interfaces.filter((iface)=>newTypes.has(iface.name)).map((iface)=>(0, _util.replaceType)(iface, newTypes, typeConfig.name, subGraphs)), | ||
fields: this.filterFields(type, newTypes, subGraphs) | ||
@@ -107,0 +107,0 @@ })); |
{ | ||
"name": "@pothos/plugin-sub-graph", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"description": "A Pothos plugin for creating multiple variants or sub-selections of the same graph", | ||
@@ -40,5 +40,5 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@pothos/core": "3.17.0", | ||
"@pothos/core": "3.19.0", | ||
"@pothos/plugin-errors": "3.6.0", | ||
"@pothos/plugin-relay": "3.21.0", | ||
"@pothos/plugin-relay": "3.23.0", | ||
"@pothos/plugin-with-input": "3.6.0", | ||
@@ -45,0 +45,0 @@ "@pothos/test-utils": "1.3.0", |
@@ -90,5 +90,5 @@ /* eslint-disable prefer-destructuring */ | ||
interfaces: () => | ||
typeConfig.interfaces.map((iface) => | ||
replaceType(iface, newTypes, typeConfig.name, subGraphs), | ||
), | ||
typeConfig.interfaces | ||
.filter((iface) => newTypes.has(iface.name)) | ||
.map((iface) => replaceType(iface, newTypes, typeConfig.name, subGraphs)), | ||
fields: this.filterFields(type, newTypes, subGraphs), | ||
@@ -95,0 +95,0 @@ }), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
152280