Skip to content

Commit

Permalink
fix(schema): fix a missing non-null (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Feb 27, 2018
1 parent d933992 commit 4cd8208
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 67 deletions.
9 changes: 8 additions & 1 deletion packages/graphile-build-pg/src/plugins/PgTablesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,14 @@ export default (function PgTablesPlugin(
return {
nodes: {
description: `A list of \`${tableTypeName}\` objects.`,
type: new GraphQLNonNull(new GraphQLList(TableType)),
type: new GraphQLNonNull(
new GraphQLList(
nullableIf(
!pgForbidSetofFunctionsToReturnNull,
TableType
)
)
),
resolve(data) {
return data.data.map(handleNullRow);
},
Expand Down
Loading

0 comments on commit 4cd8208

Please sign in to comment.