title: NestJs GraphQL playground access
body: <p>I can't seem to access the GraphQL Playground using NestJS. I'm exploring the documentation and have followed this <a href="https://docs.nestjs.com/graphql/quick-start" rel="nofollow noreferrer">https://docs.nestjs.com/graphql/quick-start</a> up to the Resolvers section to generate the <code>schema.gql</code>, but attempting to reach <code>localhost:3000/graphql</code> is not able to connect.</p>
  <p>At first I thought my code was setup incorrectly, but I spent some time digging into Nest's examples and found that those also do not work when trying to access the <code>/graphql</code> endpoint. It does work if I setup a <code>get</code> endpoint to return a JSON body using the REST method.</p>
  <pre><code>import { Module } from '@nestjs/common';
  import { GraphQLModule } from '@nestjs/graphql';
  import { RecipesModule } from './recipes/recipes.module';
  
  @Module({
    imports: [
      RecipesModule,
      GraphQLModule.forRoot({
        installSubscriptionHandlers: true,
        autoSchemaFile: 'schema.gql',
      }),
    ],
  })
  export class AppModule {}
  </code></pre>
  <p>This is directly from the NestJS example. My understanding is that the GraphQLModule should be setting up the connection to the <code>/graphql</code> endpoint. Following the docs, <code>graphql, apollo-server-express, and graphql-tools</code> were all installed.</p>
  <p>Any idea why the graphql route is not connecting?</p>
  <p>[Edit]:
  Things I've tried so far:</p>
  <ul>
  <li>setting <code>playground: true</code> explicitly with GraphQLModule.forRoot</li>
  <li>verified <code>NODE_ENV</code> is not 'production'</li>
  <li>confirmed server works when creating resolvers using REST</li>
  <li>curl'd <code>localhost:3000/graphql</code> and receive a graphql validation error, so confirm that connects correctly</li>
  </ul>