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