how to do a where expression function that references a joined table? #1273
-
i noticed in my where expression, the param to the function is referring to the table i have the select on, but i have inner joined a 2nd table that i need write some where conditions on. can you give an example on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've added documentation for this here. // no join:
select(table)..where((row) => row.id.equals(3))
// join
final query = select(table).join([...]);
query.where(table.id.equals(3)); If you need help with a specific query let me know! |
Beta Was this translation helpful? Give feedback.
I've added documentation for this here.
Basically, you can call
where
after.join()
. It works similar to regular where clauses, except that you have to specify the table directly:If you need help with a specific query let me know!