MongoDB: is it safe to use document's ID “in public”?

后端 未结 8 2446
名媛妹妹
名媛妹妹 2020-12-13 02:01

I really like MongoDB\'s automatically generated ids. They are really useful.

However, is it save to use them publicly?

Let\'s say there is a posts collecti

8条回答
  •  北海茫月
    2020-12-13 02:28

    It's not any more unsafe that using the value of auto increment id from MySql. It's not a security breach in any way.

提交回复
热议问题