File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/crates/schema/src/in_memory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ impl InMemorySchema {
612
612
id : InputObjectID ,
613
613
input_object : InputObject ,
614
614
) -> DiagnosticsResult < ( ) > {
615
- if id. as_usize ( ) >= self . enums . len ( ) {
615
+ if id. as_usize ( ) >= self . input_objects . len ( ) {
616
616
return todo_add_location ( SchemaError :: UnknownTypeID (
617
617
id. as_usize ( ) ,
618
618
String :: from ( "Input Object" ) ,
@@ -629,7 +629,7 @@ impl InMemorySchema {
629
629
/// Replaces the definition of union type, but keeps the same id.
630
630
/// Existing references to the old type now reference the replacement.
631
631
pub fn replace_union ( & mut self , id : UnionID , union : Union ) -> DiagnosticsResult < ( ) > {
632
- if id. as_usize ( ) >= self . enums . len ( ) {
632
+ if id. as_usize ( ) >= self . unions . len ( ) {
633
633
return todo_add_location ( SchemaError :: UnknownTypeID (
634
634
id. as_usize ( ) ,
635
635
String :: from ( "Union" ) ,
You can’t perform that action at this time.
0 commit comments