I can't find (even in the docs) the best way to do an API call with M2M, from sdk-js. For example, if I have two collections "articles" and "categories" with an M2M relation. How do I get all the articles from one categorie_id ?
I've tried this :
directusClient.getItems(
'articles',
{
filter: {
categories: {
id: req.params.id
}
}
}
)
But I get this error :
Error: Unknown filter: id at new APIError
.