Created
September 27, 2012 12:31
-
-
Save rd13/3793748 to your computer and use it in GitHub Desktop.
Mongoose / MongoDB Data Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/test'); | |
Schema = mongoose.Schema; | |
console.log(Schema.Types); | |
{ String: [Function: SchemaString], | |
Number: [Function: SchemaNumber], | |
Boolean: { [Function: SchemaBoolean] '$conditionalHandlers': { '$in': [Function: handleArray] } }, | |
DocumentArray: [Function: DocumentArray], | |
Array: [Function: SchemaArray], | |
Buffer: [Function: SchemaBuffer], | |
Date: [Function: SchemaDate], | |
ObjectId: [Function: ObjectId], | |
Mixed: [Function: Mixed], | |
Oid: [Function: ObjectId], | |
Object: [Function: Mixed], | |
Bool: { [Function: SchemaBoolean] '$conditionalHandlers': { '$in': [Function: handleArray] } } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment