Skip to content

how to do a where expression function that references a joined table? #1273

Answered by simolus3
matthewkooshad asked this question in Q&A
Discussion options

You must be logged in to vote

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:

// 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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthewkooshad
Comment options

Answer selected by matthewkooshad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants