Make test ID type actually exist
This way I can start to test that the code compiles.
This commit is contained in:
+6
-6
@@ -6,7 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Khan/genqlient/graphql"
|
||||
"github.com/me/mypkg"
|
||||
"github.com/Khan/genqlient/internal/testutil"
|
||||
)
|
||||
|
||||
// OmitEmptyQueryResponse is returned by OmitEmptyQuery on success.
|
||||
@@ -29,7 +29,7 @@ type OmitEmptyQueryUser 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"`
|
||||
}
|
||||
|
||||
// OmitEmptyQueryUsersUser includes the requested fields of the GraphQL type User.
|
||||
@@ -40,7 +40,7 @@ type OmitEmptyQueryUsersUser 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"`
|
||||
}
|
||||
|
||||
// Role is a type a user may have.
|
||||
@@ -66,9 +66,9 @@ type UserQueryInput struct {
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
// id looks the user up by ID. It's a great way to look up users.
|
||||
Id mypkg.ID `json:"id"`
|
||||
Role Role `json:"role"`
|
||||
Names []string `json:"names"`
|
||||
Id testutil.ID `json:"id"`
|
||||
Role Role `json:"role"`
|
||||
Names []string `json:"names"`
|
||||
}
|
||||
|
||||
func OmitEmptyQuery(
|
||||
|
||||
Reference in New Issue
Block a user