
How to filter a collection with string array?
From a POST-endpoint we want to retrieve a collection of documents filtered with a string array:
Document model:
- ID
- Name
- PDF file
- Type (GZ, VO, VN, SF)
With checkboxes we can select one or more of the above types (GZ, VO, VN, SF). How can we filter the collection based on a string array? ['GZ', 'VN']?
From a POST-endpoint we want to retrieve a collection of documents filtered with a string array:
Document model:
- ID
- Name
- PDF file
- Type (GZ, VO, VN, SF)
With checkboxes we can select one or more of the above types (GZ, VO, VN, SF). How can we filter the collection based on a string array? ['GZ', 'VN']?
Login to reply