-
Notifications
You must be signed in to change notification settings - Fork 79
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
Loopback 4 relations compatibility #194
Comments
@lolocr, there is no restriction of using LB4 relations with MSSQL connector. Do you have a sample app that can reproduce the problem? Thanks. |
Yes! I have a repo here: https://github.com/lolocr/lb4auth |
@lolocr , sorry about the late reply. Thanks for your sample repo. Since I don't have the right database schema, so I've tried to reproduce using in-memory database and it seems to be working fine. Before going into further, may I ask a trivial question: The error says |
@dhmlau, thank you for reply. I don't have any column with this name. I need it? I have tried to use the the name of the column (transaction_id) in the relation, but the problem continues. |
@lolocr , sorry about the late response. If you use the column name that actually exists, do you get another set of errors? |
@dhmlau, finally I've been able to configure the relation between two models without errors. Now, when I try to include the relation in a query using the filter object, the framework shows this error: |
@lolocr, If you agree, I'd like to continue the discussion in loopbackio/loopback-next#1352. Thanks. |
Oks @dhmlau. |
I spent half of the day to find it out( it does not work. |
Hello @JuliaRakitina, |
@lolocr no, I need filter include currently using work around |
But I Got the error "the relation is not defined for model loopback 4" when I use include filter option. Below code, I used in my application
|
@AnanthGopal, we're currently on adding support for inclusion of related models. Please see this epic: loopbackio/loopback-next#1352. Thanks. |
You mentioned, "currently using workaround", Can you explain about that, I got the same issue. Now I am using the Stored procedure to resolve that issue. |
Hi @AnanthGopal Actually same :) I am using direct SQL query |
I'm using loopback-connector-mssql with Loppback 4 version. When I have needed to use the relations with my models (belongsTo or Hasmany), I have the next error:
Exists any restriction to use the Loopback 4 relations with the mssql connector?
Thank you in advance.
The text was updated successfully, but these errors were encountered: