diff --git a/query-engine/connector-test-kit-rs/query-engine-tests/tests/writes/top_level_mutations/default_value.rs b/query-engine/connector-test-kit-rs/query-engine-tests/tests/writes/top_level_mutations/default_value.rs index 738af92a5870..57480836ca22 100644 --- a/query-engine/connector-test-kit-rs/query-engine-tests/tests/writes/top_level_mutations/default_value.rs +++ b/query-engine/connector-test-kit-rs/query-engine-tests/tests/writes/top_level_mutations/default_value.rs @@ -185,7 +185,7 @@ mod default_value { name } }"#), - @r###"{"data":{"createOneUser":{"name":"Spiderman"}}}"### + @r###"{"data":{"createOneUser":{"name":"Peter Parker"}}}"### ); insta::assert_snapshot!( @@ -200,7 +200,7 @@ mod default_value { name } }"#), - @r###"{"data":{"createOneUser":{"name":"Superman"}}}"### + @r###"{"data":{"createOneUser":{"name":"Clark Kent"}}}"### ); insta::assert_snapshot!( @@ -210,7 +210,7 @@ mod default_value { age } }"#), - @r###"{"data":{"findUniqueUser":{"name":"Superman","age":32}}}"### + @r###"{"data":{"findUniqueUser":{"name":"Clark Kent","age":32}}}"### ); insta::assert_snapshot!( @@ -225,7 +225,7 @@ mod default_value { age } }"#), - @r###"{"data":{"findManyUser":[{"name":"Spiderman","age":21},{"name":"Superman","age":32}]}}"### + @r###"{"data":{"findManyUser":[{"name":"Peter Parker","age":21},{"name":"Clark Kent","age":32}]}}"### ); Ok(()) diff --git a/query-engine/core/src/query_document/parser.rs b/query-engine/core/src/query_document/parser.rs index 980491201bbc..0b3f8573b8c5 100644 --- a/query-engine/core/src/query_document/parser.rs +++ b/query-engine/core/src/query_document/parser.rs @@ -632,7 +632,7 @@ impl QueryDocumentParser { }; match typ { - EnumType::Database(db) => match db.value_for(raw.as_str()) { + EnumType::Database(db) => match db.map_input_value(&raw) { Some(value) => Ok(ParsedInputValue::Single(value)), None => err(&db.identifier().name()), },