TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mongoose 1.0 (async MongoDB ORM for Node.JS) is out

30 点作者 Rauchg超过 14 年前

6 条评论

aaronblohowiak超过 14 年前
You, Nathan and Brian have done a great job with 1.0 -- Way to Go!!<p>What happens if a Middleware never calls done() ?<p>Does setter transformation happen upon set or upon save?<p>I am excited to see Mongoose evolve -- the Middleware concept is exciting.<p>Some minor feedback on the new site:<p><pre><code> Middleware are defined at the Schema level and are applied when the methods init (when a document is initialized with data from MongoDB), save (when a document or embedded document is saved). </code></pre> I think you want to say something like "when the methods init or save are called", but the "are called" is missing from the above.<p>Then down a bit, you have "Serial Serial Middleware" and "Parallel Parallel Middleware"; not sure about the redundant first words.<p>The email address in the copyright notice is html-entities, but they are escaped: &#38;lt;dev@learnboost.com&#38;gt;<p>Final nitpick: the site is a little hard to read with the current background.<p>Overall, great work!!
ladon86超过 14 年前
I love this project, congrats on reaching 1.0.<p>One question - do you have any plans to support replica sets, or can I currently specify a connection to a set of servers rather than one master? Thanks!
nickh超过 14 年前
MongooseJS is pretty cool. I have one question, though:<p>Why must you define models' schema when you're interacting with a schema-less database such as MongoDB?
评论 #2168875 未加载
CheekySp超过 14 年前
and another question - is it possible to index embedded document fields? When I query for a single embedded document, does mongoose return only this single document, or the whole parent document with all embedded documents is returned beforehand?
CheekySp超过 14 年前
how do I do upserts with Mongoose?
tjholowaychuk超过 14 年前
booyah!!