Skip to content

Commit

Permalink
Rename the query constant to have an underscore in it. (#241)
Browse files Browse the repository at this point in the history
We got reports of conflicts with the old constant-name and symbols that
people were defining in their app.
  • Loading branch information
csilvers authored Nov 22, 2022
1 parent 587f770 commit e322738
Show file tree
Hide file tree
Showing 57 changed files with 148 additions and 148 deletions.
8 changes: 4 additions & 4 deletions example/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions generate/operation.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The query or mutation executed by {{.Name}}.
const {{.Name}}Operation = `{{$.Body}}`
const {{.Name}}_Operation = `{{$.Body}}`

{{.Doc}}
func {{.Name}}(
Expand All @@ -18,7 +18,7 @@ func {{.Name}}(
) (*{{.ResponseName}}, {{if .Config.Extensions -}}map[string]interface{},{{end}} error) {
req := &graphql.Request{
OpName: "{{.Name}}",
Query: {{.Name}}Operation,
Query: {{.Name}}_Operation,
{{if .Input -}}
Variables: &{{.Input.GoName}}{
{{range .Input.Fields -}}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e322738

Please sign in to comment.