You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to achieve serverless integration in our application by referring - Nestjs serverless docs
If I start the lambda function locally, using commands -
npm run build
npx serverless offline
The GraphQL playground loads but crashes immediately.
It throws an error - Error: Cannot determine a GraphQL output type for the "id". Make sure your class is decorated with an appropriate decorator.
However, when I am running the application without serverless, it works.
I have added @ObjectType() decorator to the class as well.
Setup:
NestJs [8.1.6]
TypeOrm [^0.2.41]
Nestjs-Query [^0.30.0]
PostgreSQL
I am trying to achieve serverless integration in our application by referring - Nestjs serverless docs
If I start the lambda function locally, using commands -
The GraphQL playground loads but crashes immediately.
It throws an error -
Error: Cannot determine a GraphQL output type for the "id". Make sure your class is decorated with an appropriate decorator.
However, when I am running the application without serverless, it works.
I have added
@ObjectType()
decorator to the class as well.DTO class -
Entity Class -
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: