Skip to content

Commit 79e6ce3

Browse files
J Travis Lindseycodepunkt
authored andcommitted
add non-babel style in docs (#37)
1 parent 450c5eb commit 79e6ce3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ To use **mongoose-patch-history** for an existing mongoose schema you can simply
1414

1515
```javascript
1616
import mongoose, { Schema } from 'mongoose'
17-
import patchHistory from 'mongoose-patch-history'
17+
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+
*/
1824

1925
const PostSchema = new Schema({
2026
title: { type: String, required: true },

0 commit comments

Comments
 (0)