if i have an array of primary keys, how

if i have an array of primary keys, how do i search using IN?
will this work? or do i need to format the array to a comma delimited string?

            const { results: usersFromUserIds } = await this.env.DB.prepare(
                
SELECT *
FROM user
WHERE _id IN (?1)

            )
                .bind(uniqueUserIds)
                .all()
Was this page helpful?