【发布时间】:2023-03-20 10:39:02
【问题描述】:
我有这种输入类型,我想为其中一个字段添加一个默认值。我想在 ExampleInput 中的 value 字段中添加 0。
type ExampleType {
value: Int
another: String
}
type Mutation {
example(input: ExampleInput): ExampleType
}
input ExampleInput {
value: Int
another: String
}
有什么想法吗?
【问题讨论】:
标签: graphql graphql-js