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"
My action config is attached here. Contact is defined and all its members are just plain strings. So what am I doing wrong?
Nested datatype in input variable of Hasura Action
172 Views Asked by raweber At
1
For passing 'Contact' in input params you have to define it with 'input' keyword.
This is working.