Before we continue and start using GraphQL, you should take a look at AppModule.
Open backend/src/app.module.ts. It should look as follows:
@Module({ imports: [ GraphQLModule.forRoot({ debug: true, playground: true, autoSchemaFile: 'schema.gql', }), // ... ], // ... } export class AppModule {}
If you've followed the Angular chapter (that is, Chapter 8, Discovering Angular, Angular Material, and RxJS), then this whole file should make you feel right at home. NestJS uses the same decorators/properties that we are now used to. In this case, we load GraphQLModule and configure it as required.
We have enabled the debug mode and playground to be able to debug and play with our GraphQL API through the web browser. The playground is a web application that...