ahaanA
Convex Community2y ago
1 reply
ahaan

need help understanding a code

favorites: defineTable({
fileId: v.id("files"),
orgId: v.string(),
userId: v.id("users"),
}).index("by_userId_orgId_fileId", ["userId", "orgId", "fileId"]),

here does it make any sense for creating index with all 3 columns?
Was this page helpful?