We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450c5eb commit 79e6ce3Copy full SHA for 79e6ce3
README.md
@@ -14,7 +14,13 @@ To use **mongoose-patch-history** for an existing mongoose schema you can simply
14
15
```javascript
16
import mongoose, { Schema } from 'mongoose'
17
-import patchHistory from 'mongoose-patch-history'
+import patchHistory from 'mongoose-patch-history'
18
+
19
+/* or the following if not running your app with babel:
20
+const patchHistory = require('mongoose-patch-history').default;
21
+const mongoose = require('mongoose');
22
+const Schema = mongoose.Schema;
23
+*/
24
25
const PostSchema = new Schema({
26
title: { type: String, required: true },
0 commit comments