Skip to content

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

Open
@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

in: dataIssues related to working with datatype: documentationA documentation task

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions