rename in code

This commit is contained in:
Ben Kraft
2021-03-30 12:41:37 -07:00
parent db3ee65854
commit cbebeaaed4
26 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func TestGenerateExample(t *testing.T) {
}
repoRoot := filepath.Dir(filepath.Dir(thisFile))
configFilename := filepath.Join(repoRoot, "example/genql.yaml")
configFilename := filepath.Join(repoRoot, "example/genqlient.yaml")
config, err := ReadAndValidateConfig(configFilename)
if err != nil {
t.Fatal(err)
+2 -2
View File
@@ -1,6 +1,6 @@
package {{.Config.Package}}
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
{{- if .Config.ContextType -}}
@@ -10,7 +10,7 @@ import (
"encoding/json"
{{end}}
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
{{/* TODO: type-assert that your ctx type implements context.Context */}}
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type InputObjectQueryResponse struct {
+2 -2
View File
@@ -1,11 +1,11 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"encoding/json"
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type InterfaceNoFragmentsQueryResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type ListInputQueryResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type QueryWithAliasResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type QueryWithDoubleAliasResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type QueryWithEnumsResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type QueryWithSlicesResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type QueryWithStructsResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type SimpleInputQueryResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type SimpleQueryResponse struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type TypeNameQueryResponse struct {
+2 -2
View File
@@ -1,11 +1,11 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"encoding/json"
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type UnionNoFragmentsQueryRandomLeafArticle struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type UsesEnumTwiceQueryMeUser struct {
+2 -2
View File
@@ -1,9 +1,9 @@
package test
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type unexportedResponse struct {