koa-mongoose icon indicating copy to clipboard operation
koa-mongoose copied to clipboard

Setting up is wrong

Open orion110217 opened this issue 7 years ago • 0 comments

Should have been import { mongoose } from 'koa-mongoose' or var mongoose = require('koa-mongoose').mongoose

Found this error when I tried to set data type as data: { type: mongoose.Schema.Types.ObjectId }

orion110217 avatar Aug 10 '17 11:08 orion110217