I am using QueryTask in ArcgGIS JS Api 3 and I want to execute multiple query in one call, I took a look at the documentation and I didn't find the possibility to do it
this is what I am using
arraygraphic.map(async (e)=>{
let query = new esri.tasks.Query();
query.where = "id = '"+id+"'";
query.outFields = ["*"];
let response = await queryTask.execute(query)
})
and this is what I want to do
let queryList=[];
arraygraphic.map(async (e)=>{
let query = new esri.tasks.Query();
query.where = "id = '"+id+"'";
query.outFields = ["*"];
queryList.push(query)
})
let response = await queryTask.execute(queryList)
any suggestion or help ? thank you in advance