com.apollographql.apollo.exception.ApolloHttpException: HTTP 500
我在失眠症中也使用了同样的查询,而且效果很好。
以下是问题:
query FetchAds($afterPostDate: Int, $beforePostDate: Int, $beforeUpdateDate: Int, $afterUpdateDate: Int, $page: Int, $city: String, $onlyWithImage: Boolean, $near: String, $tag: String, $id: [Int]) {
posts(afterPostDate:$afterPostDate, beforePostDate: $beforePostDate, beforeUpdateDate: $beforeUpdateDate, afterUpdateDate: $afterUpdateDate, page: $page, city: $city, onlyWithImage: $onlyWithImage, near: $near, tag: $tag, id: $id) {
items {
id
title
postDate
updateDate
}
pageInfo {
hasNextPage
}
}
}
我也在iOS应用程序中与apollo客户端使用相同的查询,它也运行良好。