How to define "unknown", "undefined", or "any" in hasura action

200 views Asked by At

I am creating a hasura action, where output can be an array of object but object can have any key value pair hence I want to keep the output of hasura action as "any" can you please help?

1

There are 1 answers

0
Arjun Yelamanchili On

Your action should be able to return the type json

type Mutation {
  action(arg1: String!): json!
}