I have a working SQL query
Cases and want to use part of that query result
Cases.data.id (an array of integers) in a WHERE IN clause in a subsequent query. I've tried manipulating the JS array into different forms with
join() etc. but I'm not having any luck.
Here's what I have:
I realise this is probably very straightforward but for whatever reason the solution escapes me!
Thanks in advance