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

Upgrading graphiql to >1.0.0 #18

Closed
geoffjay opened this issue Apr 18, 2021 · 7 comments
Closed

Upgrading graphiql to >1.0.0 #18

geoffjay opened this issue Apr 18, 2021 · 7 comments

Comments

@geoffjay
Copy link

Versions of GraphiQL that are >1.0.0 have the ability to enable a tab for headers, it would be nice to be able to use this with an updated version.

I'm happy to make the change and create a PR, but would greatly benefit from some basic instructions on building so that I can test that it works.

@creimers
Copy link
Owner

Thanks for the remark. I shall look into it as soon as I find time.

@macieyng
Copy link

Hi @creimers, any progress in that matter?

@simonprast
Copy link

You can just update dependencies at package.json to current versions and build the app using yarn:

"dependencies": {
    "graphiql": "^1.4.2",
    "graphiql-explorer": "^0.6.3",
    "graphql": "^15.5.1",
    ...
}

There's currently no option to enable GraphQL headers dynamically, so they have to be enabled at App.js, line 130:

<GraphiQL
    ref={ref => (this._graphiql = ref)}
    fetcher={fetcher}
    schema={schema}
    query={query}
    onEditQuery={this._handleEditQuery}
    headerEditorEnabled={true}
    >

@zivenyang
Copy link

Although I can update the version of GraphiQL locally, I hope this project can continue to be maintained😃

@creimers
Copy link
Owner

@zivenyang Right you are. I'm awfully busy. Do you have time for a PR?

@zivenyang
Copy link

@creimers Sorry, I'd love to do this, but I'm just using this when debugging locally and the console throws some errors. But I found a simple way to integrate graphiql-explorer from here and it works well.

@creimers
Copy link
Owner

A new release (0.1.0) has been published to pypi containing graphiql 1.9.10.

Thanks @mikedizon for the PR!

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

5 participants