这是indexloc提供的服务,不要输入任何密码
Skip to content

Insert mutation with returning computed field and nested insert gives error #3609

@naveennazimudeen

Description

@naveennazimudeen

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

Metadata

Metadata

Assignees

Labels

c/serverRelated to serverk/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions