graphql 类型日期有问题
<块引用>验证失败:查询字符串日期不是定义的输入类型(在 $date_of_birth) graphql/profiles/update.graphql
这是我的以下代码:
mutation update(
$id: ID!
$uuid: String
$user_id: String
$slug: String
$name: String
$first_name: String
$last_name: String
$bio: String
$date_of_birth: Date
) {
model_update(
id: $id
model: {
properties: [
{ name: "user_id", value: $user_id }
{ name: "uuid", value: $uuid }
{ name: "name", value: $name }
{ name: "slug", value: $slug }
{ name: "first_name", value: $first_name }
{ name: "last_name", value: $last_name }
{ name: "bio", value: $bio }
{ name: "date_of_birth", value: $date_of_birth }
]
}
) {
id
created_at
user_id: property(name: "user_id")
name: property(name: "name")
slug: property(name: "slug")
uuid: property(name: "uuid")
first_name: property(name: "first_name")
last_name: property(name: "last_name")
user: related_user(join_on_property: "uuid", foreign_property: "uuid") {
id
email
}
}
}