Skip to content
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

Enable autocomplete in Notebook for graphQL schemas #5

Open
saurav-bhagat opened this issue Feb 13, 2020 · 2 comments
Open

Enable autocomplete in Notebook for graphQL schemas #5

saurav-bhagat opened this issue Feb 13, 2020 · 2 comments

Comments

@saurav-bhagat
Copy link

Hey, I'm looking if we can somehow import graphQL schema into notebook and enable autocomplete for that.

@bollwyvl
Copy link
Contributor

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.

@saurav-bhagat
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants