Skip to content

Commit

Permalink
Fixed Comments schema definition. Comments was undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 14, 2011
1 parent 2d8ccde commit a51e959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/schema.js
Expand Up @@ -19,7 +19,9 @@ var BlogPost = new Schema({

// recursive embedded-document schema

var Comments = new Schema({
var Comments = new Schema();

Comments.add({
title : String
, date : Date
, body : String
Expand Down

0 comments on commit a51e959

Please sign in to comment.