Loopback-next: Integration with TypeORM

Created on 10 Mar 2020  路  14Comments  路  Source: strongloop/loopback-next

By default, LoopBack juggler is used. LoopBack also has the flexibility to integrate other ORMs, like TypeORM. There is an existing PR https://github.com/strongloop/loopback-next/pull/4794

Acceptance Criteria

2020Q3 Docs Slipped feature user adoption

Most helpful comment

We are impatiently awaiting this development,
Sometimes we were forced to make native SQL requests in our platform http://ioc.tn/ 馃槥
Thank you for this pleasant Framework, 馃憤 馃憤
We contain to recommend this Framework for our customers to https://iotech.tn/

All 14 comments

This is awesome. I know a lot of people use Mongoose, and TypeORM; the user story that you can bring your current ORM/ODM experience to your loopback application is a powerful one.

How do we feel about having a more concrete example, than provided in the acceptance tests? For example, the most basic loopback application possible, built to showcase using TypeORM (in this case)? I'm not saying every single feature typeorm provides needs to be highlighted, but just enough of a basic structure (some models, maybe a couple of different connections to different databases).

And is the PR a good place for discussion, or is this issue more appropriate?

I think an example would be great. Do you mean to use the TypeORM component in https://github.com/strongloop/loopback-next/pull/4794 and create an example on how to use it?

cc @raymondfeng

Probably with complete endpoint example from controller, model, repository including on how to create openapi schemas using decorators. I have tries this example, only place I struggled was to frame openapi schemas for "filters" using decorators with typeorm.

@raj-298585 Thank you for chiming in - we have some prior efforts to transform LB repository apis into TypeORM implementation - see https://github.com/strongloop/loopback-next/pull/763.

I'll spend some time to build an e2e acceptance test and go from there.

I need that, actually I use TypeORM in Lb3 :)

Good i need this also 馃憤,
It would be compatible with loopback Cli ?

It would be compatible with loopback Cli ?

You mean lb4? With the relevant packages updated the app should continue to work as usual.

I mean
we can create with the loopback generator cli a Controller, Entity, Repository which works with TypeOrm

Yep.

We are impatiently awaiting this development,
Sometimes we were forced to make native SQL requests in our platform http://ioc.tn/ 馃槥
Thank you for this pleasant Framework, 馃憤 馃憤
We contain to recommend this Framework for our customers to https://iotech.tn/

Targeting for landing some time coming week, no promises though.

@sbacem here's the WIP PR - https://github.com/strongloop/loopback-next/pull/5801. Any feedback?

Closing as done

Was this page helpful?
0 / 5 - 0 ratings