Make test ID type actually exist

This way I can start to test that the code compiles.
This commit is contained in:
Ben Kraft
2021-06-03 11:36:45 -07:00
parent c2e7dc4e5b
commit 3c11f07e62
17 changed files with 84 additions and 81 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/me/mypkg"
"github.com/Khan/genqlient/internal/testutil"
)
// QueryWithAliasResponse is returned by QueryWithAlias on success.
@@ -24,11 +24,11 @@ type QueryWithAliasUser struct {
// id is the user's ID.
//
// It is stable, unique, and opaque, like all good IDs.
ID mypkg.ID `json:"ID"`
ID testutil.ID `json:"ID"`
// id is the user's ID.
//
// It is stable, unique, and opaque, like all good IDs.
OtherID mypkg.ID `json:"otherID"`
OtherID testutil.ID `json:"otherID"`
}
func QueryWithAlias(