Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResultUsers = gql.NewObject(gql.ObjectConfig{ Name: "results", Fields: gql.Fields{ "id": &gql.Field{ Type: gql.Int, }, "name": &gql.Field{ Type: gql.String, }, "email": &gql.Field{ Type: gql.String, }, "password": &gql.Field{ Type: gql.String, }, "dateofbirth": &gql.Field{ Type: gql.String, }, "phoneNumber": &gql.Field{ Type: gql.String, }, "currentAddress": &gql.Field{ Type: gql.String, }, "city": &gql.Field{ Type: gql.String, }, "province": &gql.Field{ Type: gql.String, }, "district": &gql.Field{ Type: gql.String, }, }, })
ResultUsers fields
View Source
var User = gql.NewObject(gql.ObjectConfig{ Name: "User", Fields: gql.Fields{ "id": &gql.Field{ Type: gql.Int, }, "name": &gql.Field{ Type: gql.String, }, "email": &gql.Field{ Type: gql.String, }, "password": &gql.Field{ Type: gql.String, }, "dateofbirth": &gql.Field{ Type: gql.String, }, "phoneNumber": &gql.Field{ Type: gql.String, }, "currentAddress": &gql.Field{ Type: gql.String, }, "city": &gql.Field{ Type: gql.String, }, "province": &gql.Field{ Type: gql.String, }, "district": &gql.Field{ Type: gql.String, }, }, })
User type
View Source
var Users = gql.NewObject(gql.ObjectConfig{ Name: "Users", Fields: gql.Fields{ "results": &gql.Field{ Type: gql.NewList(ResultUsers), }, "page": &gql.Field{ Type: gql.Int, }, }, })
Users type
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.