I am facing an issue with insert mutation that has a relationship based nested insert together with a returning computed field. A sample insert mutation query below:
insert account ( objects: { name: nameValue, nestedAddress: { data : { street : streetValue }}}){ returning { accountId addressId computedField } }
The error I get is "cannot cast type record to ... "
If the computedField is removed from the returning field, or if the computedField is retained but the relationship based nested insert is removed, the mutation works.
I am using Hasura v1.0.0-rc.1, on Fargate, connected to Aurora Postgres 10.7