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

feat: Add headers to graphiQL UI #37

Merged
merged 8 commits into from
Jan 28, 2025
Merged

feat: Add headers to graphiQL UI #37

merged 8 commits into from
Jan 28, 2025

Conversation

vertex451
Copy link
Member

@vertex451 vertex451 commented Jan 23, 2025

GraqhiQL is going to replace graqphl-playground. See graphql/graphql-playground#1366 (comment) (This comment is referrenced as future of graphql/graphql-playground repository in the root README)

But we have one more dependency point - github.com/graphql-go/handler that uses old version of GraqhiQL.
I created a PR graphql-go/handler#93 to propose newer version, and I am using go mod replace to that fork as a solution for us to fix autocomplete overlay issue.

Screenshot 2025-01-27 at 16 45 15

@vertex451 vertex451 requested a review from a team as a code owner January 23, 2025 13:44
@vertex451 vertex451 changed the title revert changes of graphiQL UI Add headers tographiQL UI Jan 24, 2025
@@ -14,7 +14,7 @@ type Config struct {
type HandlerConfig struct {
Pretty bool `envconfig:"default=true,optional"`
Playground bool `envconfig:"default=true,optional"`
GraphiQL bool `envconfig:"default=true,optional"`
GraphiQL bool `envconfig:"GRAPHI_QL,default=true,optional"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary? That should be the default behavior

Copy link
Member Author

@vertex451 vertex451 Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean set it to false by default? I can do that way as well.
I just wanted to set new graphiql UI as a default one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no i mean

GraphiQL   bool `envconfig:"default=true,optional"`

should be sufficient

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@vertex451 vertex451 changed the title Add headers tographiQL UI Add headers to graphiQL UI Jan 28, 2025
@vertex451 vertex451 changed the title Add headers to graphiQL UI feat: Add headers to graphiQL UI Jan 28, 2025
@vertex451 vertex451 merged commit cd17341 into main Jan 28, 2025
7 checks passed
@vertex451 vertex451 deleted the artem/revert branch January 28, 2025 09:37
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

Successfully merging this pull request may close these issues.

2 participants