Closed luluhoc closed 5 years ago
I want to use shortid
Don't use shortid, it is deprecated. Use Nano ID.
Also can I use findbyid with it?
Nano ID (and shortid) generates simple string. I have no big experience with your DB, but you can use DB’s docs.
Hey,
I want to use shortid but I would love to know if it is possible to use equals() and how I can embed just the ids, for example, I have a user and I want to store in user schema all the liked posts (favShort in my schema) and then populate them this is my schema that is using object id for now
Also can I use findbyid with it?