Mongo Non-Primary Key objectid Can Be Empty

  mongodb, question

2.

user:{
 father:objectid,
 }

What if the foreign key is empty, only string can be stored?

If you do not set the Objectid of mongodb, the system will automatically generate it.