Skip to content

Commit d2713b2

Browse files
committed
fix: skip tables with no patch type
1 parent 5dbab8e commit d2713b2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postgraphile-plugin-nested-mutations",
3-
"version": "1.0.0-alpha.21",
3+
"version": "1.0.0-alpha.22",
44
"description": "Nested mutations plugin for PostGraphile",
55
"main": "index.js",
66
"repository": {

src/PostgraphileNestedUpdatersPlugin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ module.exports = function PostGraphileNestedUpdatersPlugin(
208208
inflection.patchType(ForeignTableType.name),
209209
);
210210

211+
if (!ForeignTablePatch) {
212+
return;
213+
}
214+
211215
const patchType = newWithHooks(
212216
GraphQLInputObjectType,
213217
{

0 commit comments

Comments
 (0)