I would like to ask a question in this post but I don't have the need reputation to ask. So I created this post. The question is: Is possible to referencing other schema in mongoose using another variable type? (e.g. Number, String, etc). I know you need the ref flag in specification but I don't know if mongoose is limited to reference by only using Schema.Types.ObjectId type.
Any clarification will be greatly recieved!
Thanks.