In GraphQL, can you change the structure of the output in an alias?

前端 未结 1 830
再見小時候
再見小時候 2021-01-24 05:48

Let\'s say I\'ve got a GraphQL query that looks like this:

query {
  Todo {
    label
    is_completed
    id
  }
}

But the client that consume

相关标签:
1条回答
  • 2021-01-24 06:15

    There is no way to do that. Either change the schema to reflect the client's needs or transform the response after it is fetched on the client side.

    0 讨论(0)
提交回复
热议问题