Simple Chat Room in NodeJS, expressJS and mongoDB in Docker Swarm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
782 B

'use strict';
const SchemaTypeOptions = require('./SchemaTypeOptions');
/**
* The options defined on an ObjectId schematype.
*
* ####Example:
*
* const schema = new Schema({ testId: mongoose.ObjectId });
* schema.path('testId').options; // SchemaObjectIdOptions instance
*
* @api public
* @inherits SchemaTypeOptions
* @constructor SchemaObjectIdOptions
*/
class SchemaObjectIdOptions extends SchemaTypeOptions {}
const opts = require('./propertyOptions');
/**
* If truthy, uses Mongoose's default built-in ObjectId path.
*
* @api public
* @property auto
* @memberOf SchemaObjectIdOptions
* @type Boolean
* @instance
*/
Object.defineProperty(SchemaObjectIdOptions.prototype, 'auto', opts);
/*!
* ignore
*/
module.exports = SchemaObjectIdOptions;