What would be the best way to set up a one-to-many relationship in RethinkDB? For example, a User has a Store, a Store has Categories, and a Category has Products.
Along the same lines, is there some functionality similar to MongoDB's compound indexes?