补充注释
This commit is contained in:
@@ -93,6 +93,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
|
||||
schema, err := graphql.NewSchema(graphql.SchemaConfig{Query: graphql.NewObject(graphql.ObjectConfig{Name: "RootQuery", Fields: graphql.Fields{
|
||||
"users": &graphql.Field{
|
||||
Name: "users",
|
||||
Description: "用户列表",
|
||||
Type: graphql.NewObject(graphql.ObjectConfig{
|
||||
Name: "UserConnection",
|
||||
Description: "条件筛选用户列表",
|
||||
@@ -168,6 +170,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
},
|
||||
},
|
||||
"images": &graphql.Field{
|
||||
Name: "images",
|
||||
Description: "图像列表",
|
||||
Type: graphql.NewObject(graphql.ObjectConfig{
|
||||
Name: "ImageConnection",
|
||||
Description: "条件筛选图像列表",
|
||||
@@ -350,6 +354,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
},
|
||||
},
|
||||
"articles": &graphql.Field{
|
||||
Name: "Articles",
|
||||
Description: "文章列表",
|
||||
Type: graphql.NewObject(graphql.ObjectConfig{
|
||||
Name: "ArticleConnection",
|
||||
Description: "条件筛选文章列表",
|
||||
@@ -417,6 +423,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
},
|
||||
},
|
||||
"tags": &graphql.Field{
|
||||
Name: "tags",
|
||||
Description: "标签列表",
|
||||
Type: graphql.NewObject(graphql.ObjectConfig{
|
||||
Name: "TagConnection",
|
||||
Description: "条件筛选标签列表",
|
||||
|
Reference in New Issue
Block a user