diff --git a/src/code_generation.rs b/src/code_generation.rs
index 8bfd551..359ac0a 100644
--- a/src/code_generation.rs
+++ b/src/code_generation.rs
@@ -1,5 +1,5 @@
use graphql_introspection_query::introspection_response::{
- FullType, IntrospectionResponse, Schema, SchemaContainer,
+ self, FullType, IntrospectionResponse, Schema, SchemaTypes,
};
pub struct CodeGeneration;
@@ -20,27 +20,80 @@ impl CodeGeneration {
let mut output = String::new();
output.push_str("# code generated by dagger. DO NOT EDIT.");
- let types = schema
- .types
- .as_ref()
- .ok_or(eyre::anyhow!("types not found on schema"))?;
-
- // 1. Get a list of all types and map it to handlers
- let types: Vec