Closed hongquan closed 1 year ago
Very true. I have some notes on field order in my PR here and will add a note about splats too now that 3.0 is out.
https://github.com/edgedb/edgedb-rust/pull/236
Though a splat will work if deserializing into json with that attribute so in the meantime there is that option.
EdgDB v3 introduced splats. However, Rust client user should be careful with it, because the output field order is arbitrary and the conversion of
query_single
result to your struct will fail.It means, if you have:
this code will sometimes fail:
when EdgeDB returns data as
BlogPost {id, slug, title}
.