with enum

This commit is contained in:
2023-01-29 20:14:52 +01:00
parent 0bf6b0e91e
commit 2a1f7c3f26
14 changed files with 97 additions and 19 deletions

View File

@@ -9,6 +9,13 @@ pub fn is_scalar_type(t: &FullType) -> bool {
false
}
pub fn is_enum_type(t: &FullType) -> bool {
if let Some(introspection_response::__TypeKind::ENUM) = t.kind {
return true;
}
false
}
pub fn is_custom_scalar_type(t: &FullType) -> bool {
if is_scalar_type(t) {
// TODO: Insert scalar