Open
Description
In GraphQL it is possible to execute 1.n mutation.
mutation multipleMutations {
m1:createRoute(flightNumber:"LH2722") {
id
}
m2:createRoute(flightNumber:"LH2728") {
id
}
}
If I write the data per mutation via a CrudRepository
, each mutation is transactional on its own. But how can I pack all mutations into a transaction bracket. Is there transaction support via a transactional ExcecutionStrategy
or is there possibly @Transaction
directives support?
mutation @Transaction multipleMutations {
m1:createRoute(flightNumber:"LH2722") {
id
}
m2:createRoute(flightNumber:"LH2728") {
id
}
}
Perhaps the documentation could be expanded to include a Transaction chapter and describe the current options.