How to query an array in filter or withIndex
Example of schema -
chat: defineTable({
isGroupChat: v.boolean(),
participants: v.array(v.id("users")),
chatContext: v.optional(v.string()),
})
.index("participants", ["participants"])
Want to filter out by the userID inside of the participants... please don't say I need to fetch the entire chat and then filter it out.
