IN Operator - Custom Query - Integer values

Hello everyone!

In my server action, I have an array like this:

["123", "134", "567", "767"]

I need to use these values within a custom query, using IN operator.
The problem is that the values of the array are string and the field I’m using the IN operator is an integer field.

Any tips on how to use an array as a parameter, converting its values to int using IN operator?
:slight_smile:

Thanks!

Community Page
Last updated: