This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @Query('SELECT * FROM article ORDER BY publishedAt DESC') | |
| Stream<List<Article>> getAllArticles(); | |
| @Query('SELECT Author.*, _junction.articleId as articleId FROM ArticleAuthor AS _junction inner join Author ON (_junction.authorId = Author.id) WHERE _junction.articleId IN (:ids)') | |
| Future<List<AuthorArticleId>> getAuthorsFromArticles(List<int> ids); | |
| Stream<List<ArticleWithAuthor>> getAllArticlesWithAuthors() { | |
| final stream = getAllArticles(); | |
| final controller = StreamController<List<ArticleWithAuthor>>.broadcast(); |