作者:营帐水狂_836 | 来源:互联网 | 2023-02-01 12:40
通过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支持这个吗?怎么做?