Skip to content

Instantly share code, notes, and snippets.

Kev lineus

Block or report user

Report or block lineus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lineus
lineus / index.js
Last active Apr 6, 2018
arrow functions and mongoose (middleware, virtuals, getters/setters, and static/instance methods) don't mix
View index.js
#!/usr/bin/env node
'use strict'
const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/test')
const Schema = mongoose.Schema
const schema = new Schema({
name: String
})
You can’t perform that action at this time.