UNPKG

devlien

Version:

Devlien is a lightweight, zero-dependency Node.js framework with clean MVC structure, built-in ORM, and intuitive routing for rapid backend development.

16 lines (13 loc) 333 B
export default class ResouceCollection { constructor($model){ return this.getRecords($model); } async getRecords($model){ let records = []; for(const key in $model){ let data = await this.toJson($model[key]); records.push(data); } return records; } }