add support for custom scalars -- mainly adding proper import machinery

This commit is contained in:
Ben Kraft
2021-04-08 13:07:31 -07:00
parent e68787ad35
commit b4e8316c6a
31 changed files with 283 additions and 89 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/me/mypkg"
)
type QueryWithDoubleAliasResponse struct {
@@ -11,8 +12,8 @@ type QueryWithDoubleAliasResponse struct {
}
type QueryWithDoubleAliasUser struct {
ID string
AlsoID string
ID mypkg.ID
AlsoID mypkg.ID
}
func QueryWithDoubleAlias(