Comments (2)
i think i will not add such thing, because some users use typegoose with libraries like type-graphql
and / or nestjs
, and i dont want to block the constructor for it
from typegoose.
Okay. I also thought that sharing the classes elsewhere might be a reason against it, but I thought the return value of getModelByClass might be usable in those cases too. You know better than I do so I'll close it :).
Thanks!
from typegoose.
Related Issues (20)
- How to use @plugin decorator for a simple mongoose plugin that adds a tenantId property to applied schema HOT 6
- Model.deleteMany does not respect the writeConcern options HOT 3
- Updating a document with nested discriminator does nothing, findOne is executed instead of findOneAndUpdate HOT 4
- `QueryHelperThis` type is wrong, it has `DocumentType` in a place it shouldnt HOT 5
- Deferred function with explicit function HOT 1
- ReturnModelType type throwing errors when using mongoose.models.<class> HOT 2
- Setting "Mixed" for property HOT 13
- Empty object type HOT 7
- How to add global query filter for soft deleted documents HOT 3
- Typegoose are types incorrect for when rawResult: true is set within findOneAndUpdate middleware HOT 7
- Trouble Inferring Complete Model Using 'Ref' in Typegoose for Type Completion HOT 9
- Inheriting indexes at one level when disableLowerIndexes is true HOT 3
- Support mongoose 8.0.0 HOT 3
- SyntaxError: Import named 'Ref' not found in module HOT 1
- Automatic populate assertion with type inference HOT 3
- Create virtual in typegoose HOT 1
- Union type HOT 1
- [BUG] - Using .lean() doesn't transform nested populate HOT 2
- Select only fields explicitly declared in class HOT 3
- From required to optional in child class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typegoose.