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
+5
View File
@@ -4,3 +4,8 @@ schema: schema.graphql
queries:
- genqlient.graphql
generated: generated.go
# We map github's DateTime type to Go's time.Time (which conveniently already
# defines MarshalJSON and UnmarshalJSAON).
scalars:
DateTime: time.Time