Make test ID type actually exist
This way I can start to test that the code compiles.
This commit is contained in:
@@ -4,7 +4,7 @@ package test
|
||||
|
||||
import (
|
||||
"github.com/Khan/genqlient/graphql"
|
||||
"github.com/me/mypkg"
|
||||
"github.com/Khan/genqlient/internal/testutil"
|
||||
)
|
||||
|
||||
// QueryWithDoubleAliasResponse is returned by QueryWithDoubleAlias on success.
|
||||
@@ -24,11 +24,11 @@ type QueryWithDoubleAliasUser 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.
|
||||
AlsoID mypkg.ID `json:"AlsoID"`
|
||||
AlsoID testutil.ID `json:"AlsoID"`
|
||||
}
|
||||
|
||||
func QueryWithDoubleAlias(
|
||||
|
||||
Reference in New Issue
Block a user