Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created August 7, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheckmann/3289238 to your computer and use it in GitHub Desktop.
Save aheckmann/3289238 to your computer and use it in GitHub Desktop.
// v2
var childSchema = new Schema({ name: String })
var parentSchema = new Schema({ children: [childSchema] })
// new in v3 - inline schema declaration
var parentSchema = new Schema({ children: [{ name: String }] })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment