How to populate a ref in mongoose easily?

Hello everybody,

I am trying to make a Moderation system for a Discord Bot using MongoDB.
I am trying to put all moderation cases in a specific collection by referencing the moderation collection but I am unsure on how I could do the population.

I couldn’t really understand alot of the mongoose documentation on population. I am wondering if I just could put the schema types of the moderation schema right into the Guild one and use it like that.

Please note that I have recently started leveraging MongoDB/Mongoose more, so I don’t know a couple things as of yet.

Hello @Nikos_Papadiotis, Welcome to the MongoDB Community Forum,

You can find the examples and steps of the mongoose populate in this documentation,

Please provide more details about where you are stuck or getting any errors and what is the expected response you want.