[英]unknown type error in graphql query while fetching content?
I am new in graphql query.我是 graphql 查询的新手。 I am getting this error unknown type error i
我收到此错误未知类型错误我
I am hitting this API我正在打这个 API
My query is我的查询是
query getCallLogsForLawyer(
$endDate: end_date!
$limit: limit!
$page: page!
$startDate: start_date!
$userId: user_id!
) {
getCallLogsForLawyer(
end_date: $endDate
limit: $limit
page: $page
start_date: $startDate
user_id: $userId
) {
_id
}
}
my variable is this我的变量是这个
{
"endDate":"Mon Jan 10 2022",
"limit":100101010,
"page":1,
"startDate":"Tue Nov 02 2021",
"userId":"614eb5ef2a89b6fd69fc5ab7"
}
Your types are wrong, according to your schema, it should be -你的类型是错误的,根据你的模式,它应该是 -
query getCallLogsForLawyer(
$endDate: String!
$limit: Float!
$page: String!
$startDate: Float!
$userId: Float!
) {
getCallLogsForLawyer(
end_date: $endDate
limit: $limit
page: $page
start_date: $startDate
user_id: $userId
) {
_id
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.