sometimes helmet causes this same issue. if you have helmet loaded as a middleware, it might probably also cause this.
Top answer 1 of 6
10
sometimes helmet causes this same issue. if you have helmet loaded as a middleware, it might probably also cause this.
2 of 6
2
I encountered a similar issue this is what I did. I hope you will find it helpful. I appreciated everyone's support.
Step1: // app.module.ts
imports: [
UsersModule,
GraphQLModule.forRoot({
// autoSchemaFile: true, did not work!
autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
// schema.gql will automatically be created
debug: true,
playground: true,
}),
],
providers: [AppResolver], // all resolvers & service should be in providers
step 2:
Make sure you have one at least query bcz Mutation is not enough if you don't GraphQL playground will not start. Read more here
nestjs/graphql access to the playground
I had the same problem when updating to all latest versions, even newer than yours "@nestjs/graphql": "^9.1.2" and "graphql-tools": "^8.2.0", what I found out is that the option of playground: true doesn't seem to exist anymore but if you remove it, you'll find out that Playground is still ... More on stackoverflow.com
graphql playground not work!
Is there an existing issue for this? I have searched the existing issues Current behavior Minimum reproduction code none Steps to reproduce No response Expected behavior Package version ^8.0.0 Grap... More on github.com
Using Fastify the GraphQL Playground does not show up
Bug Report Using Sample 23 as a basis, when I change the adapters to Fastify, the playground doesn't show up. Current behavior Currently only when using express the GraphQL playground show up i... More on github.com
Support for Apollo Sandbox (instead of Playground?)
Apollo 3 is now offering Apollo ...x-an-open-graphql-ide-for-local-development. There is ApolloServerPluginLandingPageDisabled and ApolloServerPluginLandingPageLocalDefault in the npm package apollo-server-core. It would be nice to have a config option for Apollo Sandbox. Playground is retired ... More on github.com
How to create a GraphQL API with Nest.JS?
- Configure GraphQL in Nest.js
- Connect to a Database
- Generate Resources
- Create an entity
- Create a object type
- Create a service
- Connect to a Database
- Generate Resources
- Create an entity
- Create a object type
- Create a service
blog.back4app.com
blog.back4app.com › home › learn › how to build a graphql api with nest.js?
How to Build a GraphQL API with Nest.js?
What is GraphQL?
GraphQL is an open-source data query and manipulation language for APIs, created by Facebook in 2012.
blog.back4app.com
blog.back4app.com › home › learn › how to build a graphql api with nest.js?
How to Build a GraphQL API with Nest.js?
What is Nest.JS?
Nest.JS is an open-source Node.js framework for building efficient, scalable server-side applications.
blog.back4app.com
blog.back4app.com › home › learn › how to build a graphql api with nest.js?
How to Build a GraphQL API with Nest.js?
Stack Overflow
stackoverflow.com › questions › 69000341 › nestjs-graphql-access-to-the-playground
nestjs/graphql access to the playground
I had the same problem when updating to all latest versions, even newer than yours "@nestjs/graphql": "^9.1.2" and "graphql-tools": "^8.2.0", what I found out is that the option of playground: true doesn't seem to exist anymore but if you remove it, you'll find out that Playground is still working fine without the option.
Back4App
blog.back4app.com › home › learn › how to build a graphql api with nest.js?
How to Build a GraphQL API with Nest.js?
October 26, 2023 - Dive into building a GraphQL API with Nest.js. This guide covers setup, entity creation, and testing in the GraphQL Playground. Ideal for NestJS integration.
DEV Community
dev.to › tkssharma › nest-js-with-graphql-world-4a27
Nest JS With Graphql World - DEV Community
March 17, 2022 - We provide official integrations for these proven GraphQL packages to provide a simple way to use GraphQL with Nest. You can also build your own dedicated driver (read more on that here). ... # For Express and Apollo (default) $ npm i @nestjs/graphql @nestjs/apollo graphql apollo-server-express import { Module } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; @Module({ imports: [ GraphQLModule.forRoot<ApolloDriverConfig>({ driver: ApolloDriver, }), ], }) export class AppModule {}
GitHub
github.com › nainglinnphyo › OpenGraphify
GitHub - nainglinnphyo/OpenGraphify: This repository provides a powerful GraphQL server built with NestJS, along with a client-side playground for easy API exploration and testing. · GitHub
GraphQL Server using NestJS for building robust, maintainable APIs. A client-side GraphQL playground powered by Apollo Client for testing queries and mutations.
Author nainglinnphyo
DEV Community
dev.to › bitovi › creating-a-graphql-server-with-nestjs-3ap0
Creating a GraphQL server with NestJS - DEV Community
October 24, 2022 - To expose this schema to a user, create a class called MovieResolver, marked with @Resolver decorator. @Resolver decorator tells NestJS that MovieResolver class is indeed a resolver for Movie, ObjectType. Methods marked with @Query decorator will be exposed from the server, accessible in the GraphQL playground.
GitHub
github.com › nestjs › graphql › issues › 2171
graphql playground not work! · Issue #2171 · nestjs/graphql
May 18, 2022 - Is there an existing issue for this? I have searched the existing issues Current behavior Minimum reproduction code none Steps to reproduce No response Expected behavior Package version ^8.0.0 Graphql version graphql: apollo-server-expre...
Author nestjs
GitHub
github.com › nestjs › nest › issues › 5544
Using Fastify the GraphQL Playground does not show up · Issue #5544 · nestjs/nest
October 8, 2020 - Bug Report Using Sample 23 as a basis, when I change the adapters to Fastify, the playground doesn't show up. Current behavior Currently only when using express the GraphQL playground show up in the browser when opening localhost:3000/gr...
Author nestjs
GitHub
github.com › nestjs › graphql
GitHub - nestjs/graphql: GraphQL (TypeScript) module for Nest framework (node.js) 🍷
GraphQL combined with TypeScript helps you develop better type safety with your GraphQL queries, giving you end-to-end typing. Overview & Tutorial · Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here. Author - Kamil Myśliwiec · Website - https://nestjs.com ·
Starred by 1.5K users
Forked by 427 users
Languages TypeScript 99.7% | JavaScript 0.3%
GitHub
github.com › nestjs › graphql › issues › 1721
Support for Apollo Sandbox (instead of Playground?) · Issue #1721 · nestjs/graphql
August 26, 2021 - Apollo 3 is now offering Apollo Sandbox: https://www.apollographql.com/blog/announcement/platform/apollo-sandbox-an-open-graphql-ide-for-local-development. There is ApolloServerPluginLandingPageDisabled and ApolloServerPluginLandingPageLocalDefault in the npm package apollo-server-core. It would be nice to have a config option for Apollo Sandbox. Playground is retired since 1.5 years.
Author nestjs