Add documentation to types and fields

Fixes #3.
This commit is contained in:
Ben Kraft
2021-04-21 18:07:36 -07:00
parent 32fea7fae4
commit 748f2cf072
26 changed files with 387 additions and 28 deletions
+6
View File
@@ -6,10 +6,16 @@ import (
"github.com/Khan/genqlient/graphql"
)
// QueryWithStructsResponse is returned by QueryWithStructs on success.
type QueryWithStructsResponse struct {
// user looks up a user by some stuff.
//
// See UserQueryInput for what stuff is supported.
// If query is null, returns the current user.
User QueryWithStructsUser `json:"user"`
}
// A User is a user!
type QueryWithStructsUser struct {
AuthMethods []QueryWithStructsUserAuthMethodsAuthMethod `json:"authMethods"`
}