Comments (7)
to get the right return types you would need to use https://typegoose.github.io/typegoose/docs/types/documentType/
maybe try @types/mongoose 5.6.x (5.7 is not yet tested with typegoose)
otherwise i dont see a problem
from nestjs-typegoose.
from nestjs-typegoose.
@elie222 how to run your example repo? (i never used nest/graphql) i only got as far as to starting the server and locating localhost:3000/graphql
(and /cats
dosnt exists, where i would expect it)
from nestjs-typegoose.
from nestjs-typegoose.
@elie222 i just tested it, and here is what i found:
a simple log of mongoose.connection.readyState
reveals that the default connection is not connect to the database, and so the query stalls and waits for the connection to be connected
and from what i have seen, the model you use, Cat
is associated with the default connection, but there is an non-default connection that is connected
@kpfromer could you help here? because the example in your repo seems to be almost the same as the one provided here
from nestjs-typegoose.
and when trying to use connectionName
, it will result in #57
from nestjs-typegoose.
I have a similar problem.
https://github.com/oliviermattei/nestjs-graphql-typegoose-example
In my case, User module works perfectly but demand module is stuck when I use it. I have
"error": "Failed to fetch. Please check your connection"
In fact the demand way should be better because of the fusion of model and type
Have you an Idea ?
from nestjs-typegoose.
Related Issues (20)
- Controller passes the test whereas the services level test don't
- Models with the same name HOT 1
- some error
- Incompatibility with the typegoose model
- Typegoose library hook errors.....Generic type HOT 2
- InjectModel brake on mongoose 5.12.9 and higher HOT 6
- Dependency Injection Inside a Pre save hook HOT 1
- Support/ update to NestJS v8 and others HOT 17
- Discriminator properties not working, only base class.
- MongooseError: Operation `xxx.find()` buffering timed out after 10000ms
- Mongoose version 6.0.5, without usenewurlparser parameter
- Mongoose 6.x Support Issue - no exported member 'ConnectionOptions' HOT 1
- replace Promises with Observables HOT 1
- 'useNewUrlParser' does not exist in type 'TypegooseConnectionOptions' HOT 4
- Can not install module HOT 5
- Dependency Dashboard
- Package maintenance HOT 5
- Using the same models in InjectModel HOT 1
- InjectConnection not supported?
- Not support new @nestjs/common 10 version HOT 2
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 nestjs-typegoose.