它是一个mongoose文档人口错别字吗?

时间:2017-08-31 01:48:20

标签: mongoose

我正在阅读猫鼬人口here,我不确定我是否正确理解这一行:

console.log('The author is %s', story.creator.name);

因为我找不到任何创作者'故事模式的领域,但我看到的是它的领域是作者,标题,粉丝'。对我来说,那条线必须像:

console.log('The author is %s', story.author.name);

我错过了什么吗?

1 个答案:

答案 0 :(得分:1)

这是一个错字。你是对的,它应该是

  

console.log('作者是%s',story.author.name);