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

Importing hasura_metadata.json with Hasura Action query #4516

@crosseyedalien

Description

@crosseyedalien

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    k/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions