-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is required connectors? #6773
Comments
A datasource...
A repository...
Though datasources are concepts from LoopBack 3, there are no plans to deprecate the concept. Somewhat related - There were some early discussions on replacing Juggler (and in turn, |
and how could i write a connector for loopback 4? i can't find anything about it in documentation, ok i understood repositories and connectors are different things but service can replace a connector? |
We haven't ported the documentation to LoopBack 4, but AFAIK, the LoopBack 3 docs still apply as Juggler itself (the LB3/LB4 ORM) hasn't changed much. The docs demonstrate with prototypes, but classes should work fine too. Some things to note:
There's also some brief LoopBack 4 docs on using Services are JavaScript classes with any arbitrary properties with no arbitrary restrictions or interfaces. Hence, anything can be classes. This is where Connectors differ: Connectors have the benefit of built-in connection lifecycle management and a set of well-defined interfaces such as migration and discovery (which the lb4 CLI uses). |
Hi @mdbetancourt, I'll proceed to close this issue as solved due to inactivity. Feel free to comment if you believe that this is not the case. |
Why we need a Connector or datasource? is not enough with just repositories? there's some way to build connector at the loopback 4 way? or connectors are just legacy code from lb3?
The text was updated successfully, but these errors were encountered: