convex-ents field options default and index
The use case is that I would like to increment the userCount each time someone joins a community. I will have to index it to order it by userCount. However, if I don't give it a default, I'll probably end up getting an error somewhere down the road because I'll forget to give it an initial value and try to increment 1 to undefined.
.field("userCount", v.number(), { default: 1, index: true })