How does NestJS support both REST and GraphQL in the same project?
-
A
They cannot coexist in NestJS
-
B
By using platform adapters โ REST via controllers, GraphQL via @nestjs/graphql module
-
C
By running two separate servers
-
D
By converting REST endpoints to GraphQL resolvers automatically