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.

feat: Update the GraphQL page

See original GitHub issue

Update the GraphQL page from GraphiQL to GraphQL Playground by Prisma Labs. It provides a better and Interactive UI for testing and checking Endpoints. Demo

I could make a PR for the same by Changing the contents of the GRAPHIQL variable here https://github.com/encode/starlette/blob/c5239ba89bc273645c82bd76bce185a5bd4964c7/starlette/graphql.py#L147-L279 I’ll start working on this if this gets a green flag 😅 😅

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
athulcommented, Dec 18, 2019

Hey @tomchristie I actually Tried it by playing a bit with Source code and it actually worked and really well too… Screen Shot 2019-12-18 at 6 05 19 PM

import graphene
from fastapi import FastAPI
from starlette.graphql import GraphQLApp


class Query(graphene.ObjectType):
    hello = graphene.String(name=graphene.String(default_value="stranger"))

    def resolve_hello(self, info, name):
        return "Hello " + name

#
app = FastAPI()
app.add_route("/", GraphQLApp(schema=graphene.Schema(query=Query)))

This is the source code for it

1reaction
tomchristiecommented, Dec 17, 2019

I think I probably just need to leave this one in other folk’s hands.

I’d be totally happy with someone starting up a project based on the existing graphql.py and associated tests & docs. If someone happens to take a propactive lead on that, then we can consider deprecating the built-in option, and instead start linking out to third parties instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appsmith - How To Use GraphQL (Feat. Hasura) - YouTube
Did you know you can use GraphQL in Appsmith? While we do not yet have native support for GraphQL, it's 100% possible to...
Read more >
Pagination | GraphQL
The ability to ask for information about the edge itself, like cursor or friendshipTime . The ability to change how our backend does...
Read more >
How Facebook organizes their GraphQL code
While GraphQL is a convenient way to fetch data, you don't need to design your backend around it. Instead, just write your backend...
Read more >
Complete Introduction to Fullstack, Type-Safe GraphQL (feat ...
Update 19/11/2020: The tutorial has been updated to use Nexus ... In the /pages/api/graphql.ts file, write the following boilerplate code:.
Read more >
REST easy, GraphQL is here - Changelog
In this special rebroadcast of JS Party, Jerod and Suz talk with John Resig about how he's using GraphQL at Khan Academy, some...
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