Ever intrepid, I am attempting to use Wither in production (😄 ).
I'm familiar with NodeJS's Mongoose, in which you can define models like (pseudocode)
Product {
creator { type: ObjectId, reference: "User" }
}
Later, you can run a query, the result of which is either a product or a list of products, etc., and you can .populate("creator"), which transforms the creator field from an ObjectId into a proper document from the Users collection.
This seems tricky in the Rust type system, but I am hoping this feature is available.
Thank you.
Ever intrepid, I am attempting to use Wither in production (😄 ).
I'm familiar with NodeJS's Mongoose, in which you can define models like (pseudocode)
Later, you can run a query, the result of which is either a product or a list of products, etc., and you can
.populate("creator"), which transforms thecreatorfield from an ObjectId into a proper document from the Users collection.This seems tricky in the Rust type system, but I am hoping this feature is available.
Thank you.