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

Update 6-authentication.md #1473

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johnnyluong
Copy link

The 'handler' package was updated such that the "NewDefaultServer" function cannot be found unless the package path is updated to "github.com/99designs/gqlgen/graphql/handler".
Additionally, it was not specified that the server.go file is separated into its own directory. This should be addressed to avoid confusion for those presently following this tutorial that want to run the server.

The 'handler' package was updated such that the "NewDefaultServer" function cannot be found unless the package path is updated to "github.com/99designs/gqlgen/graphql/handler".
Additionally, it was not specified that the server.go file is separated into its own directory. This should be addressed to avoid confusion for those presently following this tutorial.
Copy link
Member

@Glyphack Glyphack left a comment

Choose a reason for hiding this comment

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

Thank you @johnnyluong. The changes you made are correct, these are reflected in the reference project but I did not had write access to update them here. Hopefully a maintainer can help with this PR.

@@ -236,6 +236,7 @@ func ForContext(ctx context.Context) *users.User {
</Instruction>

Now we can use the middleware we created in our server:
Create a new folder in the root directory called 'server' and move the server.go file to the directory you just created.
Copy link
Member

Choose a reason for hiding this comment

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

This is a good suggestion which I did not know about when I wrote this. I also prefer to call the directory cmd as it's more common in the Go community.

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.

None yet

2 participants