Hi
I am trying to join a variable(from a query) like below but not working
var str2= "1234,7890";
var query = $"SELECT b.ID, A.CustId FROM `Test` A UNNEST Custhps b WHERE A.`$Type` = \"Customer\" AND A.CustId IN ["+ str2 +"]";
var result = await cluster.QueryAsync<Cust>(query);
var items = await result.Rows.ToListAsync<Cust>();
var query1 = $"SELECT A.Id, B.LocNm, r.GtmuCustId FROM `Test` A UNNEST A.SrLoc AS B JOIN "+ items.ToArray() +" AS r ON A.RteId = r.RteID WHERE (A.`$Type` = \"Route\" AND B.LocTypCdv !=\"05\")";
var result1 = await cluster.QueryAsync<Cust2>(query1);
var items1 = await result1.Rows.ToListAsync<Cust2>();
The 'Item.ToArray is from the first query . I tried with list , array but not working .Is there a way for me to pass this into the second query .
Please let me know your thoughts
Thanks