Permalink
Browse files

updated docs for cast

  • Loading branch information...
1 parent 4e5ccfa commit 1c04850e6751ef217529e038913ddce4a7a844ed @nw nw committed Jun 12, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.md
View
7 README.md
@@ -25,6 +25,11 @@ In your application, add mongoose to the requires path:
properties: ['first', 'last', 'age', 'updated_at'],
+ cast: {
+ age: Number,
+ 'nested.path': String
+ },
+
indexes: ['first'],
setters: {
@@ -144,7 +149,7 @@ To remove an existing one:
- *cast*
- Defines type casting. By default, all properties beginning with `_` are cast to `ObjectID`.
+ Defines type casting. By default, all properties beginning with `_` are cast to `ObjectID`. (note: Casting an Array will cast all items in an the Array. Currently, Arrays cast when 'save' is called.)
- *indexes*

0 comments on commit 1c04850

Please sign in to comment.