Total.js Platform
Total.js Platform

Total.js Platform news and tutorials

Async / Await with DBMS module in Total.js

Async / Await with DBMS module in Total.js

I have improved the DBMS module by adding a new minor feature that can enhance development and save a lot of time. I have extended the .callback() method by supporting $ argument that solves auto error handling in Total.js Schemas, Tasks, or Controllers.

Good to know:
callback($) returns a new Promise with auto error handling.

For understanding

Example

Routing:

Schema: