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
feat: Update the GraphQL page #753
Comments
That looks pretty decent yup. I'm not sure I really want us to take pull requests in this area or not, since what I'd really like to see at this point is having the GraphQL app move out into a third party package as per #619 |
I haven't had any expereience with making python packages... But I'd totally love to work on the above mentioned. Do you have any suggestions or workarounds for the same? Plus updating the package might cause some disinterest who use FastAPI framework for GraphQL in production. |
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 |
Obviously Understandable. |
Hey @tomchristie I actually Tried it by playing a bit with Source code and it actually worked and really well too.... 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 |
Thank you for filing this issue. We have decided to deprecate GraphQL support within Starlette itself so I am going to close this issue. See #619. |
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 herestarlette/starlette/graphql.py
Lines 147 to 279 in c5239ba
I'll start working on this if this gets a green flag 😅 😅
The text was updated successfully, but these errors were encountered: