Complete the code to start a transaction in GraphQL.
mutation StartTransaction {
[1] {
success
}
}The beginTransaction mutation starts a new transaction.
Complete the code to commit a transaction after changes.
mutation CommitChanges {
[1] {
success
}
}The commitTransaction mutation saves all changes made during the transaction.
Fix the error in the mutation to cancel a transaction.
mutation CancelTransaction {
[1] {
success
}
}The rollbackTransaction mutation cancels all changes made during the transaction.
Fill both blanks to start and then commit a transaction.
mutation ManageTransaction {
[1] {
success
}
[2] {
success
}
}First, beginTransaction starts the transaction, then commitTransaction saves the changes.
Fill all three blanks to start, rollback, and then commit a transaction correctly.
mutation ComplexTransaction {
[1] {
success
}
[2] {
success
}
[3] {
success
}
}Start with beginTransaction, then rollbackTransaction cancels changes, and finally commitTransaction saves if needed.
