Comment by Nasser Torabzade on How to convert a string to ObjectId in nodejs mongodb native driver?

thanks, you're right about my use case. but if I generate _id in client side, isn't it required to check its uniqueness in my collection? I supposed that check is more expensive than type casting in server side, what do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *