These are chat archives for Automattic/mongoose

Jan 2018
Jan 15 2018 21:50
hey, is it a bad practise to create ids on frontend? using say shortid? and use those instead of the autogenerated id?
or should I simply use my own uid for the stuff I need, but still use the internal ids when it comes to updating etc.
Juha Lindstedt
Jan 15 2018 21:56
You need to use ObjectId spec for _id but other properties can be whatever
And you can generate ObjectId on frontend, that’s by design