【发布时间】:2017-11-16 00:11:32
【问题描述】:
带样例让大家容易理解,带https://developer.github.com/v4/explorer/
查询观众信息:
query {
viewer {
followers {
totalCount
}
following {
totalCount
}
}
}
结果是:
{
"data": {
"viewer": {
"followers": {
"totalCount": 131
},
"following": {
"totalCount": 28
}
}
}
}
我想要的是:
{
"data": {
"viewer": {
"followersCount" 131,
"followingCount": 28
}
}
}
那么 GraphQL 支持这个吗?以及怎么做?
【问题讨论】:
标签: graphql