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

docs: Retire deprecated handler methods #1332

Merged
merged 3 commits into from
Jun 22, 2021

Conversation

takanabe
Copy link
Contributor

Background

Refactoring the handler package deprecated some methods and this tutorial still uses those methods. Thus, this commit retires the following methods and use the new alternatives.

See 99designs/gqlgen#885 for more details about the refactor.

Refactoring the handler package deprecated some methods and this tutorial still uses those methods. Thus, this commit retires the following methods and use the new alternatives.

* https://github.com/99designs/gqlgen/blob/5ad012e3d7be1127706b9c8a3da0378df3a98ec1/handler/handler.go#L17
* https://github.com/99designs/gqlgen/blob/5ad012e3d7be1127706b9c8a3da0378df3a98ec1/handler/handler.go#L242

See 99designs/gqlgen#885 for more details about the refactor.
To use out-of-box transport configurations, use handler.NewDefaultServer instead of handler.New.
@TasinIshmam
Copy link
Contributor

TasinIshmam commented Jun 22, 2021

Hi, thanks for the PR @takanabe!

I noticed the same methods being called in content/backend/graphql-go/6-authentication.md (Line 272).

Would you please take a look and consider updating that as well? I can approve the merge afterward.

@TasinIshmam TasinIshmam merged commit ae9b03b into howtographql:master Jun 22, 2021
@TasinIshmam
Copy link
Contributor

Merged. Thanks again!

@takanabe takanabe deleted the patch-1 branch June 22, 2021 05:03
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