payload
Version:
Node, React and MongoDB Headless CMS and Application Framework
7 lines • 394 B
TypeScript
import type { PayloadRequest } from '../express/types';
/**
* Starts a new transaction using the db adapter with a random id and then assigns it to the req.transaction
* @returns true if beginning a transaction and false when req already has a transaction to use
*/
export declare function initTransaction(req: PayloadRequest): Promise<boolean>;
//# sourceMappingURL=initTransaction.d.ts.map