Skip to content

Glossary: GraphQL APIs

Transaction

Also written: inTransaction, BEGIN, COMMIT, ROLLBACK

A group of database changes that all happen or none do. SQL's `BEGIN` starts it, `COMMIT` saves every change, and `ROLLBACK` undoes them if something fails; `placeOrder` uses one so the order, its lines and the stock change save together.

Where the book teaches it

Related terms

Prepared statement