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
+2 -1
View File
@@ -4,6 +4,7 @@ package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/me/mypkg"
)
type SimpleQueryResponse struct {
@@ -11,7 +12,7 @@ type SimpleQueryResponse struct {
}
type SimpleQueryUser struct {
Id string `json:"id"`
Id mypkg.ID `json:"id"`
}
func SimpleQuery(