Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 14, 2025
1 parent f3e3f6c commit c370407
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions crates/torii/graphql/src/object/inputs/where_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ fn parse_where_value(
field_path: &str,
type_data: &TypeData,
) -> Result<Vec<Filter>> {
println!("Parsing where value for {}: {:?}", field_path, type_data);
match type_data {
TypeData::Simple(_) => {
if type_data.type_ref() == TypeRef::named("Enum") {
Expand Down Expand Up @@ -176,7 +175,6 @@ fn parse_where_value(
Ok(vec![parse_filter(&Name::new(field_path), FilterValue::List(values))])
}
TypeData::Nested(_) => {
println!("Processing nested type for {}", field_path);
parse_nested_where(&input, field_path, type_data)
}
}
Expand All @@ -186,17 +184,12 @@ pub fn parse_where_argument(
ctx: &ResolverContext<'_>,
where_mapping: &TypeMapping,
) -> Result<Option<Vec<Filter>>> {
println!("Parsing where argument");
ctx.args.get("where").map_or(Ok(None), |where_input| {
println!("Where input: {:?}", where_input.as_value());
let input_object = where_input.object()?;
println!("Input object: {:?}", input_object.as_index_map());
where_mapping
.iter()
.filter_map(|(field_name, type_data)| {
println!("Processing field: {} with type: {:?}", field_name, type_data);
input_object.get(field_name).map(|input| {
println!("Found input for field {}: {:?}", field_name, input.as_value());
parse_where_value(input, field_name, type_data)
})
})
Expand Down
1 change: 0 additions & 1 deletion crates/torii/graphql/src/object/model_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ impl ResolvableObject for ModelDataObject {
let mut conn = ctx.data::<Pool<Sqlite>>()?.acquire().await?;
let order = parse_order_argument(&ctx);
let filters = parse_where_argument(&ctx, &where_mapping)?;
println!("Filters: {:?}", filters);
let connection = parse_connection_arguments(&ctx)?;


Expand Down

0 comments on commit c370407

Please sign in to comment.