search

Home  >  Q&A  >  body text

如何给mongodb的列加注释

像Oracle/mysql都可以给表中字段加注释,例如:

comment on column t1.id  is 'id';
comment on column t1.nameis '姓名';
comment on column t1.age is '年龄';

所以我想问问,mongodb是不是也有什么方法可以加注释啊

曾经蜡笔没有小新曾经蜡笔没有小新2851 days ago1049

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-02 09:21:39

    Probably not. Or pick a good field name, or write comments in the document.

    reply
    0
  • Cancelreply