GraphQL: Support repeatable directive definition printing (clos… (#7227)
This commit is contained in:
1 parent
bda0632890
commit
1a18cf7fce
3 files changed
+7
No files matched your search
@@ -380,6 +380,7 @@ function genericPrint(path, options, print) {
|
||||
])
|
||||
)
|
||||
: "",
|
||||
n.repeatable ? " repeatable" : "",
|
||||
concat([" on ", join(" | ", path.map(print, "locations"))])
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,10 @@ directive @a(as: String = 1) on QUERY
|
||||
directive @a(as: String, b: Int!) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY | MUTATION
|
||||
directive @a(as: String! = 1 @deprecated) repeatable on QUERY | MUTATION
|
||||
|
||||
directive @a on QUERY
|
||||
directive @a repeatable on QUERY
|
||||
|
||||
|
||||
directive @a(as: String) on QUERY
|
||||
@@ -30,8 +32,10 @@ directive @a(as: String = 1) on QUERY
|
||||
directive @a(as: String, b: Int!) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY | MUTATION
|
||||
directive @a(as: String! = 1 @deprecated) repeatable on QUERY | MUTATION
|
||||
|
||||
directive @a on QUERY
|
||||
directive @a repeatable on QUERY
|
||||
|
||||
directive @a(as: String) on QUERY
|
||||
|
||||
|
||||
@@ -4,8 +4,10 @@ directive @a(as: String = 1) on QUERY
|
||||
directive @a(as: String, b: Int!) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY
|
||||
directive @a(as: String! = 1 @deprecated) on QUERY | MUTATION
|
||||
directive @a(as: String! = 1 @deprecated) repeatable on QUERY | MUTATION
|
||||
|
||||
directive @a on QUERY
|
||||
directive @a repeatable on QUERY
|
||||
|
||||
|
||||
directive @a(as: String) on QUERY
|
||||
|
||||
Reference in new issue
Block a user