thedevstockgirlT
Convex Community2y ago
21 replies
thedevstockgirl

How to make a query for a compound index like this?

I'd like to be able to have an index with the postId, but then also have an index on likesCount. How can I write the query for this?

.index("by_post_id_and_likes_count", ["postId", "likesCount"])
Was this page helpful?