rename in code
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user