Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalicki2 committed May 10, 2024
1 parent 9d53e21 commit a698ae9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions crates/isograph_cli/src/batch_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,19 @@ pub(crate) fn handle_compile_command(
// TODO validate that we didn't define any new root types (as they are ignored)
}

// TODO the ordering should be:
// - process schema
// - validate
// - process schema extension
// - validate
// TODO the (simplified?) validation pipeline should be:
//
// Validation state: fully unvalidated
// - process schema and validate
// - process schema extension and validate
// Validation state: all types have been defined
// - add mutation fields
// - add refetch fields
// - process parsed iso field definitions
// - validate client fields
// Validation state: all fields have been defined
// - validate fields with selection sets
// Validation state: fully validated

let fetchable_types = schema
.fetchable_types
.iter()
Expand Down

0 comments on commit a698ae9

Please sign in to comment.