Skip to content

Explore support for (multiple) transactions and update documentation to provide guidance  #274

@Thinkenterprise

Description

@Thinkenterprise

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions