Mongoose Extras
=====================================
Provides Custom Schema Types support for Mongoose.
Example:
var mongoose = mongoose ; //inside your modelvar Schema = mongooseSchema IP = mongooseSchemaTypesIP exampleSchema = ipAddress: IP ; //orvar Schema = mongooseSchema exampleSchema = ipAddress: 'IP' ;
Search Example:
//in mongoose schema make sure you have a flag on searchable fields examplevar exampleSchema = ipAddress: IP searchable: true ; Collection = mongoose; options//search the the first 10 records on the collection where ip matches 127.0.0.1options = items: 10 page: 1 match: ipAddress: '127.0.0.1' Collection;