Thanks a lot for your reply!
The thing is, I am storing the data I want to query in a database. So what should I put instead of the dataset name? Is there a way how to convert a database into a collection?
Sorry, I am quite new to Wix and also JavaScript. I was trying out this solution instead of filtering a dataset, which I asked about here (for you to get more information about my problem): https://www.wix.com/corvid/forum/community-discussion/filter-dataset-1/p-1/dl-5d51a4aac3270200172f63af
Actually I am quite stuck at the moment, having tried various approaches to solve my issue.
So any help is greatly appreciated!