Skip to content

NestJS query + Mongoose bugs? #208

Answered by mareksuscak
mareksuscak asked this question in Q&A
Discussion options

You must be logged in to vote

@TriPSs while creating a minimum reproducible example, I figured out what was causing the errors - it was the global ClassSerializerInterceptor

// main.ts

// This breaks NestJS query
app.useGlobalInterceptors(
  new ClassSerializerInterceptor(app.get(Reflector))
);

Once commented out. Everything started working as expected including the totalCount and custom resolvers + custom services.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mareksuscak
Comment options

@mareksuscak
Comment options

Answer selected by mareksuscak
@TriPSs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants