How To Create Flutter Moor Relationship With One-To-Many Join
问题 I have a table Category which is Related to a Task table in a one-to-many relationship and I am attempting to perform a join using Moor. I would like to return a list for the list of tasks that match a category. How do I do it? Stream<List<CategoryWithTask>> watchAllCategories() { return (select(categories) ..orderBy(([ (c) => OrderingTerm(expression: c.name), ]))) .join([leftOuterJoin(tasks, tasks.categoryId.equalsExp(categories.id))]) .watch() .map((rows) => rows.map( (row) { return