I want to select data from three tables via waterline, the SQL might like this
select p.name, p.code, s.stock, b.spec, b.batchno
from stock as s, batch as b, product as p
where s.user = userId and s.batch = b.id and b.product = p.id
this repo is for issues regard waterline documentation, I think you should get an answer if you post your question (which is not an issue) on stackoverflow
I want to select data from three tables via waterline, the SQL might like this
How to realize this by ORM method?