with proper optional types

This commit is contained in:
2023-02-01 15:27:44 +01:00
parent 8549cfc3a7
commit f4a812a7d2
3 changed files with 337 additions and 342 deletions

View File

@@ -32,8 +32,8 @@ pub fn is_input_object_type(t: &FullType) -> bool {
pub fn is_required_type(t: &FullTypeInputFields) -> bool {
match t.input_value.type_.kind {
Some(__TypeKind::NON_NULL) => return false,
Some(_) => return true,
Some(__TypeKind::NON_NULL) => return true,
Some(_) => return false,
_ => return false,
}
}
@@ -42,7 +42,7 @@ pub fn is_required_type_ref(t: &TypeRef) -> bool {
match t.kind {
Some(__TypeKind::NON_NULL) => return true,
Some(_) => return false,
_ => return true,
_ => return false,
}
}