【发布时间】:2018-07-14 13:08:24
【问题描述】:
我有一个这样的 Graphql 突变:
gql 查询:
mutation UpdateMother($mother_id: ID!, $child_name: String!) {
updateMother(
mother: {
id: $id
child: {
name: $child_name
}
}
)
}
效果很好,但我需要使用$child.name 而不是$child_name。这可能吗?
【问题讨论】:
标签: graphql apollo graphql-js react-apollo apollo-client