Apollo Router GraphQLPlayground

Is there a way to show the legacy apollo graphQL playground in the new apollo router, like in Apollo Server?

Thanks,
Patrick

Are you just looking to run the Studio Sandbox from router? I believe this config option should do it for you.

But specifically this UI please

Oh I see, that I’m not sure of. I don’t think that functionality would have been built into router since it seems it is being deprecated even in Apollo Server (see the note about playground in the Apollo Server 4 migration docs)

I got the old ui using ApolloServerPluginLandingPageGraphQLPlayground and doing something like the snippet below.

import {
  ApolloServerPluginLandingPageGraphQLPlayground,
} from "apollo-server-core";

  const server = new ApolloServer({
    typeDefs,
    resolvers,
    csrfPrevention: true,
    cache: "bounded",
    introspection: true,
    plugins: [
      ApolloServerPluginLandingPageGraphQLPlayground({
        persistExplorerState: true,
        embed: true,
      }),
    ],
  });

I got the old ui using ApolloServerPluginLandingPageGraphQLPlayground and doing something like the snippet below.

import {
  ApolloServerPluginLandingPageGraphQLPlayground,
} from "apollo-server-core";

  const server = new ApolloServer({
    typeDefs,
    resolvers,
    csrfPrevention: true,
    cache: "bounded",
    introspection: true,
    plugins: [
      ApolloServerPluginLandingPageGraphQLPlayground({
        persistExplorerState: true,
        embed: true,
      }),
    ],
  });

I prefer ApolloServerPluginLandingPageLocalDefault because you get way more features. I would post a screenshot but since I’ma new user it’s giving me a hard time