Skip to content

Commit f08e753

Browse files
committed
Use qualified paths to use uuid, chrono and bigdecimal structs
1 parent ffeeca1 commit f08e753

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wundergraph_cli/src/print_schema/print_helper.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,16 @@ impl<'a> Display for GraphqlType<'a> {
396396
write!(f, "bool")?;
397397
}
398398
ColumnType { ref rust_name, .. } if rust_name == "Timestamptz" => {
399-
write!(f, "DateTime<Utc>")?;
399+
write!(f, "chrono::DateTime<chrono::offset::Utc>")?;
400400
}
401401
ColumnType { ref rust_name, .. } if rust_name == "Timestamp" => {
402-
write!(f, "NaiveDateTime")?;
402+
write!(f, "chrono::naive::NaiveDateTime")?;
403403
}
404404
ColumnType { ref rust_name, .. } if rust_name == "Uuid" => {
405-
write!(f, "Uuid")?;
405+
write!(f, "uuid::Uuid")?;
406406
}
407407
ColumnType { ref rust_name, .. } if rust_name == "Numeric" => {
408-
write!(f, "BigDecimal")?;
408+
write!(f, "bigdecimal::BigDecimal")?;
409409
}
410410
ColumnType { ref rust_name, .. } => write!(f, "{}", fix_table_name(rust_name))?,
411411
}

0 commit comments

Comments
 (0)