edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
209 stars 26 forks source link

Accept `Value::Str` for Enum encoding #308

Closed MrFoxPro closed 3 months ago

MrFoxPro commented 3 months ago

This will allow pass String as a query, so instead of

Enum(EnumValue::from(v.to_string()))

we will be able to write

v.to_string()

This will fit with behaviour of edgedb-js driver