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

How to disable DO NOT EDIT message in generated code? #2450

Closed
hsblhsn opened this issue Dec 6, 2022 · 1 comment
Closed

How to disable DO NOT EDIT message in generated code? #2450

hsblhsn opened this issue Dec 6, 2022 · 1 comment

Comments

@hsblhsn
Copy link
Contributor

hsblhsn commented Dec 6, 2022

What happened?

I am getting the message added in every resolver file generated by gqlgen.

// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.21 DO NOT EDIT.

This is causing my IDE (GoLand) to think that it's a genrated file and should not be edited. GitHub also disabled diff view for those files by default.

Is there any way to disable the addition of the message in my generated code?

What did you expect?

I expect it to behave like as it previously did. Remove the DO NOT EDIT section from the message.

Minimal graphql.schema and models to reproduce

versions

  • go run github.com/99designs/gqlgen version? v0.17.21
  • go version? 1.19
@StevenACoffman
Copy link
Collaborator

Resolved in #2454

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