well, to fetch a specific discussions you need to include relationship in your query.
you can use something like (not tested):
app.store
.find('discussions', {
sort: '-createdAt',
page: { limit: 1 },
'filter[q]': 30805,
include: 'firstPost', // here you can include relationship (in this case the firstpost)
})
.then((results) => {
//...
}
or the direct link should be something similar to
https://discuss.flarum.org/api/discussions?filter[q]=30805&page%5Blimit%5D=1