Open saurav-bhagat opened 4 years ago
Hi, thanks for the interest! Unfortunatel, this tool (aside from being very experimental) doesn't quite handle that case for you, as it targets the server end of the Jupyter toolchain, and is only incidentally written in Python in order to interact with existing server components.
This repo does offer access to the GraphiQL interface, which has quite good autocompletion.
There is a GraphQL client for many languages, and usually more than one, offering different features. Because GraphQL provides such a nice definition, some do provide a more "native" experience for working with schema types in the host language:
As for autocompleting the graphql schema/query language itself inside a string in a notebook in a target language: that's going to be more challenging! To my knowledge, there is no graphql kernel, which is fine. There are, however, several language servers: indeed, the guts of one power the graphiql interface. A place that might be able to land that integration (in JupyterLab) would be jupyterlab-lsp.
Thanks for the information. I have access to GraphiQL but the thing is I want python functionalities to be used in the data which is received after querying graphql and there is no better place to do that but notebook where we can collaborate too. I looked at jupyterlab-lsp but currently, it supports only python. I'll look how it can help.
Hey, I'm looking if we can somehow import graphQL schema into notebook and enable autocomplete for that.