Всем привет, у меня есть такая мутация (используется Apollo GraphQL)
mutation Change(
$program_id: FeeRebatePartnerProgramId
$account_id: LoroAccountId!
) {
changeFeeRebatePartnerProgram(
programId: $program_id
accountId: $account_id
) {
id
programId
accountId
state
}
}
не совсем понимаю как реализовать подобное, пока только на все мои попытки выдаёт ошибку
One of GraphQL’s major strengths is that it lets you send multiple queries in a single request. However, since the response data is shaped after the structure of the fields being requested, you might run into naming issues when you’re sending multiple queries asking for the same fields:
{
User(id: "1") {
name
}
User(id: "2") {
name
}
}