Nested datatype in input variable of Hasura Action

172 Views Asked by At

I am trying to create a Hasura Action that takes an input with a nested type. I researched on this topic and according to Hasuras GitHub nested types are now a supported feature of Hasura. Anyways, when trying to create my action I get the error: "code": "invalid-configuration", "error": "Inconsistent object: in action "create_organisation"; the type: "Contact" is not defined in custom types or it is not a scalar/enum/input_object" enter image description here My action config is attached here. Contact is defined and all its members are just plain strings. So what am I doing wrong?

1

There are 1 best solutions below

1
On

For passing 'Contact' in input params you have to define it with 'input' keyword. enter image description here

enter image description here

This is working.