Skip to content

Commit ed34340

Browse files
authored
Merge pull request #405 from maraisr/patch-1
feat: Adds in the `@required` Relay directive
2 parents a16f800 + 0c3079e commit ed34340

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

resources/META-INF/relay modern directives schema.graphql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,14 @@ directive @stream(
6161
) on FIELD
6262

6363
directive @preloadable on QUERY
64+
65+
enum RequiredFieldAction {
66+
NONE
67+
LOG
68+
THROW
69+
}
70+
71+
directive @required(
72+
action: RequiredFieldAction!
73+
) on FIELD
74+

0 commit comments

Comments
 (0)