Skip to content

Commit 4547b7a

Browse files
Deepak Singhfacebook-github-bot
Deepak Singh
authored andcommitted
Add is_distillery metadata for GraphQL queries only fetching distillery data
Reviewed By: tyao1 Differential Revision: D51598934 fbshipit-source-id: 8ff8fa4f34963618617ee38c49a8ecc5157f7e67
1 parent 499a15d commit 4547b7a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

compiler/crates/relay-lsp/src/completion/test.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ fn whitespace_in_union() {
264264
fragment UnionFragment on CommentBody {
265265
__typename
266266
}
267-
267+
268268
fragment UnionVariantFragment on PlainCommentBody {
269269
__typename
270270
}
271-
271+
272272
fragment UnrelatedFragment on Task {
273273
__typename
274274
}
@@ -409,6 +409,7 @@ fn directive() {
409409
assert_labels(
410410
items.unwrap(),
411411
vec![
412+
"credentials",
412413
"prependEdge",
413414
"deleteRecord",
414415
"appendNode",
@@ -446,6 +447,7 @@ fn directive_on_scalar_field() {
446447
assert_labels(
447448
items.unwrap(),
448449
vec![
450+
"credentials",
449451
"prependEdge",
450452
"deleteRecord",
451453
"appendNode",
@@ -732,6 +734,7 @@ fn empty_directive() {
732734
assert_labels(
733735
items.unwrap(),
734736
vec![
737+
"credentials",
735738
"prependEdge",
736739
"deleteRecord",
737740
"appendNode",

compiler/crates/relay-test-schema/src/testschema.graphql

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ schema {
66
subscription: Subscription
77
}
88

9+
directive @credentials(
10+
use_case: String!
11+
vc_transform: String!
12+
token: String
13+
) on FIELD
14+
915
directive @live_query(polling_interval: Int, config_id: String) on QUERY
1016

1117
directive @customDirective(level: Int!) on FIELD | FRAGMENT_SPREAD

0 commit comments

Comments
 (0)