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

ID Scalar does not work when defining Custom Types in Actions #4061

@richardgirges

Description

@richardgirges

Problem

When attempting to use the ID or uuid Scalars in the "Actions -> Custom types" section, I'm getting the following error:

{
    "path": "$.args[0].args",
    "error": "validation for the given custom types failed because the type \"ID\" for field \"profileId\" in  input object type \"UpdateProfileInput\" does not exist",
    "code": "constraint-violation"
}

I assume perhaps Hasrua's uuid Scalar is not going to be accessible (although that would be nice), but the docs do mention that ID should be useable here. For now, I'm forced to simply use String types in place of ID or uuid types.

Steps to Reproduce

  1. Go to Actions
  2. Go to Custom Types
  3. Create a new custom type or input that utilizes ID or uuid as a field type

Version

graphql-engine:v1.2.0-beta.2

Metadata

Metadata

Assignees

Labels

c/actionsRelated to actionsc/serverRelated to servere/quickfixcan be wrapped up in few hoursk/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions