Giter VIP home page Giter VIP logo

Comments (7)

hasezoey avatar hasezoey commented on June 30, 2024

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.

elie222 avatar elie222 commented on June 30, 2024

from nestjs-typegoose.

hasezoey avatar hasezoey commented on June 30, 2024

@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.

elie222 avatar elie222 commented on June 30, 2024

from nestjs-typegoose.

hasezoey avatar hasezoey commented on June 30, 2024

@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.

hasezoey avatar hasezoey commented on June 30, 2024

and when trying to use connectionName, it will result in #57

from nestjs-typegoose.

oliviermattei avatar oliviermattei commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.