This package has been deprecated

Author message:

This functionality is built into mongoose now. See [mongoose docs](http://mongoosejs.com/docs/guide.html#timestamps)

mongoose-created-at

1.0.3 • Public • Published

mongoose-created-at

Deprecated. This functionality is built into mongoose now. See

mongoose docs

Dependency Status Dependency Status Code Climate Build Status Coverage Status

Another mongoose created-at module. Gives you some options to change the path and indexing object.

Usage

'use strict';

var mongoose = require('mongoose');
var Schema   = mongoose.Schema;

var MySchema = new Schema({
  name: String
});

MySchema.plugin(require('mongoose-created-at'));

To pass in options:

MySchema.plugin(require('mongoose-created-at'), {
  createdAtPath: 'createdAt',
  index: false
});

Options

Package Sidebar

Install

npm i mongoose-created-at

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • ksmithut