Handle Creation of Single or Multiple Records in AdonisJS
· ☕ 2 min read
Support creation of a single record or a group of records using same business logic and in the same controller in AdonisJS.
Typically you create the following controller to handle record creation -
1 2 3 4 5 6 // TodoController.js async create({ request, auth }) { const data = request.