search

Home  >  Q&A  >  body text

mongodb - Can mongo non-primary key objectid be empty?

2.

user:{
    father:objectid,
}

What if the foreign key is empty and can only store string type?

代言代言2719 days ago838

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-06-08 11:04:05

    Simply try it and you’ll find out faster than asking. There is no such constraint.

    reply
    0
  • Cancelreply