-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): remove apollo-server-plugin-landing-page-graphql-playground #2973
base: master
Are you sure you want to change the base?
fix(deps): remove apollo-server-plugin-landing-page-graphql-playground #2973
Conversation
@elijaholmos How can I support that this MR is accepted and merged? We also see this warning regularly and would like to fix it. |
@twestendorff, sorry, I am not a maintainer of this repository, only a first-time contributor. One of the team members would need to approve & merge this PR. Sadly, it has been over a year without any activity, so I am not optimistic |
Coming here after doing some JS type trickery to make Can confirm it works as a drop-in replacements to playground |
Here's my current workaround, in case this doesn't get merged: import { ConfigService } from '@nestjs/config';
import { GraphQLModule } from '@nestjs/graphql';
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
import { ApolloServerPluginLandingPageLocalDefault } from '@apollo/server/plugin/landingPage/default';
import { configModule } from '../config';
export const graphqlModule = GraphQLModule.forRootAsync<ApolloDriverConfig>({
driver: ApolloDriver,
imports: [configModule],
inject: [ConfigService],
async useFactory(configService: ConfigService) {
const { APP_ENV } = configService.get<any>('app');
const isDev = APP_ENV === 'dev';
const plugins = [];
if (isDev) {
plugins.push(
ApolloServerPluginLandingPageLocalDefault({
footer: false,
embed: true
})
);
}
return {
playground: 0 as any, // <- this
plugins
// ... other options here
} satisfies ApolloDriverConfig;
}
}); |
@elijaholmos I saw that but still wanted to offer my help, maybe there is an issue that I don't know why this MR is not accepted/merged. It's a sad that it's been open for so long. 2022 is already some time ago. @kamilmysliwiec can you as a maintainer help here? |
If someone wants to use Apollo Studio instead, they can register a dedicated plugin. We remain using GrapQL Playground as the default to avoid introducing unnecessary breaking changes - there's really no rush in migrating to the different version (no security issues whatsoever that would force us to do so too) |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #2972
What is the new behavior?
Removes the deprecated dependency
@apollo/server-plugin-landing-page-graphql-playground
, described in #2972. Follows the official guide published by the Apollo team at https://www.apollographql.com/docs/apollo-server/api/plugin/landing-pages/#configuring-default-landing-pages to migrate to the new replacement.Does this PR introduce a breaking change?