NestJS · Junior · Question 67 of 75
Can Nest serve GraphQL instead of REST?
- 1Only through a separate Express app
- 2No, Nest supports only REST
- ✓Correct answer: Yes, with
@nestjs/graphqland drivers for Apollo or Mercurius
Explanation
You write resolvers with @Resolver(), @Query() and @Mutation(), in a code-first or schema-first style.