question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Programatically set the GraphiQL playground URL

See original GitHub issue

Set the endpoint for GraphiQL based on off the settings in redwood.toml.

Example:

const server = new ApolloServer({
  typeDefs,
  resolvers,
  playground: {
    endpoint: "/dev/graphql"
  }
});

Use getConfig() from @redwoodjs/internal to read the redwood.toml file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 5, 2020

Could I be assigned this issue please?

0reactions
thedavidpricecommented, Oct 15, 2020

yes, I believe there are some historical reasons for this (things changed with what was provided) as well as the fact GraphQL Playground is built on top of GraphiQL (I believe).

Correct me otherwise, but I think it’s safe to assume that currently, it’s all GraphQL Playground only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL Playground - Apollo GraphQL Docs
In development, Apollo Server enables GraphQL Playground on the same URL as the GraphQL server itself (e.g. http://localhost:4000/graphql ) and ...
Read more >
Quick Start Guide - GraphQL ASP.NET
This guide will help you get a GraphQL project up and running so you can start experimenting. We'll cover the following:
Read more >
How to enable GraphQL Playgorund on a Production ...
Net Core 3.1 with a GraphQL API that I'm going to use in a live demo session and I would like to be...
Read more >
Intro to GraphQL for .NET Developers: Schema, Resolver, and ...
Peter introduces you to GraphQL so your REST API client list can grow and ... at the end of the URL in order...
Read more >
Super Simple GraphQL Tutorial with C# | Okta Developer
UsePlayground (new PlaygroundOptions { QueryPath = "/api", Path = "/playground" }); } app.UseGraphQL("/api");. This will configure GraphQL ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found