Using the frontend or backend API, is there a way to easily get all rem Ids of a knowledge base at once or even query the db to filter e.g. by tags or using regular expressions, etc.?
I’d like to filter my own knowledge base to get all rems with a specific tag so that I can further process this data in JavaScript. But all supported endpoints seem to only return one rem by a given identifier, not collections of rem.
I could use a search portal and query the ids from all rems of the search results (as they show up in the “visibleRemOnDocument” property), but I experience difficulties when searching for tags in search portals, results seem to vary and sometimes there are duplicates (maybe I’m doing something wrong).
It is also not easy to get the id of a search portal, since you cannot just copy the rem reference like with other rems, so it can only be retrieved by using the API to get the parent rem and copy the id from its children.