NestJS har first-class GraphQL-stöd via @nestjs/graphql (byggt på Apollo Server). Det erbjuder en code-first-approach (definiera ditt schema med TypeScript-klasser och decorators, schemat auto-genereras) — det idiomatiska NestJS-sättet — som passar ramverkets decorator/DI-modell.
Ställa in GraphQL (code-first)
({
: [
.<>({
: ,
: ,
: ,
}),
],
})
{}
