ts-mongoose
ts-mongoose copied to clipboard
Automatically infer TypeScript interfaces from mongoose schemas🙀
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Bumps [bson](https://github.com/mongodb/js-bson) from 1.1.0 to 1.1.6. Release notes Sourced from bson's releases. 1.1.6 The MongoDB Node.js team is pleased to announce version 1.1.6 of the bson module! The BSON library...
Counld not find in the docs a way to add text indexes like you could do with mongoose. like this: ``` const mongoose = require('mongoose'); const UserSchema = new mongoose.Schema({...
I'm having trouble using properties of type `Buffer` in my ts-mongoose models. Whenever I try to assign a `Buffer`-type object to a property defined as `Type.buffer`, I get the following...
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 4.0.1. Commits See full diff in compare view Maintainer changes This version was pushed to npm by oss-bot, a new releaser for y18n since your...
I have a model in it's own file which has a ref to another model in a different file. Then in my controller I ```import 'ts-mongoose/plugin';``` and attempt to use...
Good afternoon, is it possible to create a recursive scheme? ```js const products = createSchema({ id: Type.number({ required: true }), products: Type.array({ required: true }).of(products), }); ``` I tried to...
If type of _id is set to be none-ObjectId type, the ExtractProps will still extract _id as ObjectId. ```ts const AccountSchema = createSchema({ _id: Type.string({ require: true }), nickName: Type.string({...
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. Commits c74c8af 1.3.7 024b8b5 update deps, add linting 032fbaf Use Object.create(null) to avoid default object property hazards 2da9039 1.3.6 cfea636 better git push script,...