I created a query with NOT IN clause to exclude the first two ids of the table, but it doesn’t work correctly, the query returns an id value which must not be present as shown in the attached image,
so i created the same query with a custom query and it works fine.
Wappler expects an array to be passed in the query builder UI for IN operator.
Try [1,2].
As for custom query, Wappler/SQL-parameter does not support array for IN operator. Hence the comma separated values work there.
If you ever need to use IN with a parameter in custom query - you cannot in Wappler.
You will have to use find_in_set or equivalent in your SQL DB and configure that.
Oh yes. My bad.
That just converts the value into a string like "[1,2]" and not an actual array.
Here's another way you can try:
Create a variable with set value step and set its value as 1,2.
Then, in query, set var1.split(',').