xox*_*der 0 graphql graphql-js express-graphql
我知道我的数据是否会像
{
id: 123
address: xyz
name: hello
}
Run Code Online (Sandbox Code Playgroud)
我想在查询期间使用别名我可以这样做
query {
identification: id
address
full_name : name
}
Run Code Online (Sandbox Code Playgroud)
所以我的数据将如下所示:
{
identification: 123
address: xyz
full_name: hello
}
Run Code Online (Sandbox Code Playgroud)
但我希望即将发布的数据如下所示:
{
id : 123
info: {
address: xyz
name: hello
}
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能在 GraphQl Query 中实现这一点,我怎样才能给出别名info
| 归档时间: |
|
| 查看次数: |
1372 次 |
| 最近记录: |