Skip to content

Commit 4c8b9e8

Browse files
committed
disallow unique directive on relationshipProperties explicitly, since interface rule is gone
1 parent cbcb4cc commit 4c8b9e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/graphql/src/schema/validation/custom-rules/features/valid-relationship-properties.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function assertRelationshipProperties(
7979
"subscriptionsAuthorization",
8080
"relationship",
8181
"cypher",
82+
"unique",
8283
];
8384
const foundForbiddenDirective = field.directives.find((d) => forbiddenDirectives.includes(d.name.value));
8485
if (foundForbiddenDirective) {

0 commit comments

Comments
 (0)