Skip to content

Commit 19c2529

Browse files
Steven Gschwindfacebook-github-bot
authored andcommitted
add config + validation to enable enforcement of not using fields
Reviewed By: janettec Differential Revision: D78164257 fbshipit-source-id: acda941c08fe3f15172a27fb8678c8c1daf59965
1 parent 4622d48 commit 19c2529

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/crates/graphql-syntax/src/node/constant_value.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ impl ConstantValue {
7575
generate_unwrap_fn!(unwrap_boolean, self, bool, ConstantValue::Boolean(b) => b.value);
7676
generate_unwrap_fn!(unwrap_string, self, StringKey, ConstantValue::String(s) => s.value);
7777
generate_unwrap_fn!(unwrap_enum, self, StringKey, ConstantValue::Enum(e) => e.value);
78+
generate_unwrap_fn!(unwrap_list, self, &List<ConstantValue>, ConstantValue::List(l) => l);
7879
}
7980

8081
impl fmt::Display for ConstantValue {

0 commit comments

Comments
 (0)