In drupal 8.5 I have a taxonomy term list like this:
Term A (12 items) Term 1 (3 items) Term 2 (8 items) Term 3 (1 items) Term B (3 items) Term 4 (1 items) Term 5 (2 items)
I want to use the json api to fetch all data within
term B. So I expect a result set of 3 items.
But when I do:
https://www.some-api.com/jsonapi/node/test? _format=api_json& filter[taxFilter][condition][path]=field_regio& filter[taxFilter][condition][operator]=IN& filter[taxFilter][condition][value]=2 (=> id of term B)
I get a response with
This is probably because the term id of these nodes are set to the children (term 4 and 5).
But isn't drupal supposed to return all nodes in the children of term B?
Otherwise how can I get all nodes in Term A or B?