Build Transactions

Build a feature's transaction-database — atomic mutations over the store.

Adobe e9b0945 694 B Updated 142 repo stars

File contents

Create services/main-service/transaction-database/: transaction-database.ts (extends the preceding layer — IndexDatabase if the feature built indexes, else CoreDatabase — adds transactions from ./transactions/index.js) plus a transactions/ folder — one mutation per file + barrel. Type the store param CoreDatabase.Store (entities/resources/archetypes) or IndexDatabase.Store (reads an index).

Comes after index-database (or core-database if no indexes).

The how is in the auto-loading features/services/main-service/transactions.md rule.

adobe/data/tree/main/packages/data-ai/skills/build-transactions commit e9b0945570

Frequently asked questions

npx skillmds@latest add adobe/build-transactions