Per @samali0996 's comment below: https://gist.github.com/pjobson/6b9fb926c59f58aa73d4efa10fe13654?permalink_comment_id=4487157#gistcomment-4487157
The new WSL Win10/11 should support this natevly. Thanks for posting the update!
Per @samali0996 's comment below: https://gist.github.com/pjobson/6b9fb926c59f58aa73d4efa10fe13654?permalink_comment_id=4487157#gistcomment-4487157
The new WSL Win10/11 should support this natevly. Thanks for posting the update!
| const Author = require('../models/author') | |
| const Book = require('../models/book') | |
| //... | |
| const getAll = async ({ author, genre }) => { | |
| let bookAggregate = Book.aggregate() | |
| if (genre) { | |
| bookAggregate = bookAggregate.match({ genres: genre }) | |
| } |