user
This commit is contained in:
@@ -21,7 +21,7 @@ func (User) TableName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var userType = graphql.NewObject(graphql.ObjectConfig{
|
var userType = graphql.NewObject(graphql.ObjectConfig{
|
||||||
Name: "User",
|
Name: "user",
|
||||||
Description: "用户信息",
|
Description: "用户信息",
|
||||||
Fields: graphql.Fields{
|
Fields: graphql.Fields{
|
||||||
"id": &graphql.Field{Type: graphql.Int, Description: "用户ID"},
|
"id": &graphql.Field{Type: graphql.Int, Description: "用户ID"},
|
||||||
|
Reference in New Issue
Block a user