Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Mongoose / MongoDB Data Types
mongoose = require('mongoose');
Schema = mongoose.Schema;
{ 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