You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on upgrading all of my js-data stuff to v3 and I've run into an issue with querying through relations. I'm using js-data/js-data-http (both v3) on the front end and js-data/js-data-sql (both v3) on my API. I have two mappers:
The querying through relations didn’t make it into js-data-sql 1.x because it didn't quite fit into way the new Base Adapter works. Porting that feature forward is on the roadmap, but if you’d like to try porting it that would be nice.
I'm event sure how the original feature worked as I didn't implement it. I'll try to take a look at it though.
I've been working on upgrading all of my js-data stuff to v3 and I've run into an issue with querying through relations. I'm using js-data/js-data-http (both v3) on the front end and js-data/js-data-sql (both v3) on my API. I have two mappers:
And
In js-data v2, I was able to do queries like the following:
User.findAll({where: {user.customer.name: 'foo'}});
In js-data v3, queries like this produce the error
missing FROM-clause entry for table "customer"
I really need this functionality. Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: