Skip to content

Commit 0747562

Browse files
authored
fix(tags): fix non-null for multiple @unique tags (#681)
1 parent ed75ce2 commit 0747562

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/graphile-build-pg/src/plugins/PgIntrospectionPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function smartCommentConstraints(introspectionResults) {
358358
}
359359
if (klass.tags.unique) {
360360
if (Array.isArray(klass.tags.unique)) {
361-
klass.tags.unique.forEach(key => addKey(key, true));
361+
klass.tags.unique.forEach(key => addKey(key));
362362
} else {
363363
addKey(klass.tags.unique);
364364
}

packages/postgraphile-core/__tests__/integration/schema/__snapshots__/smart_comment_relations.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11980,7 +11980,7 @@ type DeleteStreetPropertyPayload {
1198011980
1198111981
type House implements Node {
1198211982
buildingId: Int
11983-
buildingName: String!
11983+
buildingName: String
1198411984
floors: Int
1198511985
1198611986
"""

0 commit comments

Comments
 (0)