noob saibotN
Convex Community14mo ago
3 replies
noob saibot

Can I setup an index with array list field

In my
users
table, I'm adding a new key
roles
which is an array. Is it possible to declare an index based on that field? If yes, how could I run a query using the
.withIndex
api where the values of the field are in a list? If this is not possible, is there a pattern or workaround I could choose to "limit" queries upon the (very large)
users
table, based on
roles
?
Was this page helpful?