I think this is a simple one. I noticed that the release notes for version 1.2.0-beta.4 said Hasura Actions could now be defined with a Query so I tried it out. After creating it, I exported the metadata and then re-imported it and received the error message:
Failed importing metadata
key "arguments" not present
Of course a query does not technically need arguments, but it appears whatever metadata validation goes on is still looking for one. Maybe Hasura Action Queries are being validated against the same rules as Hasura Action Mutations?
Action Definition Used:
type Query {
actionName : SampleOutput
}
type SampleOutput {
accessToken : String!
}
Thanks