I'm trying to use "getEntityRecords" to get custom post types from specific terms of taxonomy. For "post" I can use "categories" attribute in "query" object, like below:
getEntityRecords( 'postType', 'post', {per_page: 3, categories: [1,2,3] } )
and it works fine. But how to do the same for taxonomy terms?
I've tried use "terms" attribute in query object but this does not work.
getEntityRecords( 'postType', 'my_post_type', {per_page: 3, terms: [1,2,3] } )
I want to get only posts in specific term but now I get all custom posts.