Add a comment about the rust_decimal bug on ingestion
@@ -145,6 +145,8 @@ impl GraphQLProtocolAdapter {
i
))),
},
+ // We can't use Decimal::from_f64 here due to a bug in rust_decimal.
+ // Issue: https://github.com/paupino/rust-decimal/issues/228<Paste>
Value::Float(f) => match Decimal::from_str(&f.to_string()).ok() {
Some(dec) => Ok(QueryValue::Float(dec)),
None => Err(PrismaError::QueryConversionError(format!(
