In the previous project, I'm using NodeJS with Mongoose to handle schema and db connection, now that I'm trying to migrate to Deno, I found that Deno doesn't have Mongoose yet as its third party module.
I saw the reference, seems like they are using NPM to add mongoose (which means back to NodeJS way). The schema I found from deno_mongo is different from the schema I used in prev project.
And there is no example on how to use other collection id as reference to the current collection, for example:
userprofileid: {
type: mongoose.Types.ObjectId,
ref: "user_profiles"
},
so how to convert the code above?