Can we pass multiple string values for a single filter to fetch the CF response
I have a requirment where we have a listing page with restaurants (cards). There is a filter and when end user select single filter example cuisine=french. im able to fetch the data from graphql query and return the CFs which has a tag called french. Now if end user selects multiple filters like french and italian then i need to show all the CFs which has tags french and italian through graphql.
I have tried multiple ways but im getting null values
sample query:
query getDiningList( $langcode: String,$tag1: [String], $tag2:String,$offset: Int,$limit: Int) {
diningList(
includeVariations: true
_locale:$langcode
offset: $offset
limit: $limit
filter:{
_path:{
_expressions:[
{_operator: STARTS_WITH,value:"/content/dam/test/cfm"}
]
},
cuisineTag:{
_logOp:OR
_expressions:[{_operator:CONTAINS , values:$tag1}],
}
locationTag:{
_expressions:[{_operator: CONTAINS, value:$tag2}]
}
}
){
items{
_path
__typename
title
categoryTag
cuisineTag
locationTag
teaserTitle
teaserDescription
}
}
}
Sample endpoint URL: /graphql/execute.json/test/getDiningListing;langcode=en;tag1=french,italian;offset=0;limit=6;
Is this endpoint url correct for sending multiple string values for tag1?
Provide an approach whether we can fetch the data with a filter having multiple string values or should we try with any alternative approach?