什么等于mongodb中的sql SELECT字段AS`name`

时间:2019-07-09 13:51:33

标签: sql mongodb

有这样的资源

name: "nick"

grated: {"step1":"123","step2":"456","step3":"789"}

time: "123213123"

//and more

我想通过db.find()获得这样的结果

{
  "axd":"nick",
  "grated": {"l1":"123","l2":"456","l3":"789"},
  time: "123213123"
}

这里nameaxdgrated.step1grated.l1grated.step2grated.l2grated.step3为{{1} },而我尝试了grated.l3,但是没有任何想法吗?

0 个答案:

没有答案