Thanks for the heads up.
I wanted to direct people to use createConnection b/c having two
methods leads to confusion (as we're still seeing) and I eventually
want to deprecate connect() since its sugar for createConnection
anyway. The docs should be consistently using this approach. Maybe
I'll add a section to the FAQ
http://mongoosejs.com/docs/faq.html
On Tue, Aug 21, 2012 at 7:19 AM, JohnnyHK <
john.ha...@gmail.com> wrote:
> Hey Aaron, there's been a number of recent questions on SO related to people
> using mongoose.createConnection instead of mongoose.connect. I think it's
> coming from the 3.0 documentation which uses this approach. The problem is
> that people start down this path and then fail when they use mongoose.model
> to register their schema (instead of db.model like in the examples). Is
> there a reason for the change in the getting started examples? Seems it
> would be better to direct newcomers to start with the mongoose.connect
> pattern instead.
>
> --
> --
>
http://mongoosejs.com
>
http://github.com/learnboost/mongoose
> You received this message because you are subscribed to the Google
> Groups "Mongoose Node.JS ORM" group.
> To post to this group, send email to
mongoo...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongoose-orm...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/mongoose-orm?hl=en
>
>
>
--
Aaron
@aaronheckmann