TypeORM

TypeORM - data-mapper ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases. Works in Node.JS and Browser.

Repository

Each entity has its own Repository. Repositories can be obtained from your connection. There are three types of repositories you can use:

Repository

Repositories allow to work with your specific entity - it allows to insert / update / delete or find entities. You can access repository via connection connection.getRepository(Entity). There are several public API's you can use:

TreeRepository

SpecificRepository

Fork me on GitHub