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

[Console UI] Remote Schemas do not load default values for input type's field #7471

@Phu96

Description

@Phu96

Version:
hasura/graphql-engine:v2.0.7

Steps to produce

  1. Add a new mutation to remote schema(created with Symfony framework using GraphQLite) with the following input as an argument
input TestInput {
  client_note: String = null
  client_email: String = null
}
  1. Reload the remote schema from console UI.

  2. Open remote schema's permissions and add an arbitrary role like ROLE_TEST for example.

  3. Click edit permission for that role.

  4. The UI display the following input type, which doesn't have default values for its field

    Screen Shot 2021-08-26 at 17 42 20
  5. Select the previously created mutation then click "Save Permision"

  6. The following error occurred.

    Screen Shot 2021-08-26 at 17 57 56

When I inspect the request payload which contains the definition of the remote schema, I realized that it also didn't have default values for TestInput's field, which are null in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions