Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MutationType *graphql.Object
View Source
var QueryType *graphql.Object
View Source
var UserType = graphql.NewObject( graphql.ObjectConfig{ Name: "User", Fields: graphql.Fields{ "id": &graphql.Field{ Type: graphql.Int, }, "email": &graphql.Field{ Type: graphql.String, }, "firstName": &graphql.Field{ Type: graphql.String, }, "lastName": &graphql.Field{ Type: graphql.String, }, "isOwner": &graphql.Field{ Type: graphql.Boolean, }, "token": &graphql.Field{ Type: graphql.String, }, }, }, )
Functions ¶
func Initialize ¶
func Initialize()
Types ¶
type G ¶
type G struct{} // used for adding fields
func (*G) InitializeUser ¶
func (g *G) InitializeUser()
Click to show internal directories.
Click to hide internal directories.