Skip to content

Instantly share code, notes, and snippets.

View BMartinos's full-sized avatar

Martin Brocker BMartinos

  • Cape Town
  • 09:11 (UTC +02:00)
View GitHub Profile
@BMartinos
BMartinos / index.js
Last active August 25, 2020 14:20
Mongoose Patch History $push bug
import Promise, { join } from 'bluebird'
import mongoose, { Schema } from 'mongoose'
import patchHistory from 'mongoose-patch-history'
mongoose.Promise = Promise
const PostSchema = new Schema(
{
title: String,
tags: { type: [String], default: void 0 },