Closed Pepeye closed 1 year ago
Works for me. Although, it's not in any released version.
I'm going to release soon. Feel free to reopen if you see this issue in edgedb-tokio 0.4.0 or git version.
I had this bug the entire time too but upon moving to 0.4 it's gone. 🎉
Describe the bug Still expecting implicit id when querying and returning typed nested shapes from edgedb and using the
edgedb_derive
crate.Reproduction Below is the rust code and example schema
Expected behavior Struct / shape to be printed in terminal but instead getting compiler showing an
expected implicit id
error as evidenced in the screenshots below.If I run the query without the id and expect a shape without ids i get this error. If i add an id to the query and the struct the error disappears. However it seems even with nested ids this also doesn’t work (e.g. having id in each of the nested struct and query so that each nested edgedb type returns an id).
Versions (please complete the following information):
Additional context This relates to #175 which is showing as fixed, merged.