From 598145de466f3b9b5aa7eab0d831bb4a41ae918e Mon Sep 17 00:00:00 2001 From: Laurie Harper Date: Mon, 1 Aug 2011 14:46:55 -0300 Subject: [PATCH] Minor README formatting fixes --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bb28b3e..cd3220e 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,16 @@ mongoose-types - Useful types and type plugins for Mongoose ### Setup To include all of the defined types: + var mongoose = require("mongoose"); var db = mongoose.createConnection("mongodb://localhost/sampledb"); var mongooseTypes = require("mongoose-types"); + + // Load all types mongooseTypes.loadTypes(mongoose); You can also specify that you only want to load and use a limited subset of the types provided: - var mongoose = require("mongoose"); - var db = mongoose.createConnection("mongodb://localhost/sampledb"); - var mongooseTypes = require("mongoose-types"); + // Only load the email type mongooseTypes.loadTypes(mongoose, "email");