github.com/nathanstitt/genqlient@v0.3.1-0.20211028004951-a2bda3c41ab8/example/genqlient.yaml (about)

     1  schema: schema.graphql
     2  operations:
     3  - genqlient.graphql
     4  generated: generated.go
     5  
     6  # needed since it doesn't match the directory name:
     7  package: main
     8  
     9  # We bind github's DateTime scalar type to Go's time.Time (which conveniently
    10  # already defines MarshalJSON and UnmarshalJSON).  This means genqlient will
    11  # use time.Time when a query requests a DateTime, and is required for custom
    12  # scalars.
    13  bindings:
    14    DateTime:
    15      type: time.Time