移除next
This commit is contained in:
		@@ -96,7 +96,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
				Name: "UserConnection",
 | 
									Name: "UserConnection",
 | 
				
			||||||
				Fields: graphql.Fields{
 | 
									Fields: graphql.Fields{
 | 
				
			||||||
					"list":  &graphql.Field{Type: graphql.NewList(user)},
 | 
										"list":  &graphql.Field{Type: graphql.NewList(user)},
 | 
				
			||||||
					"next":  &graphql.Field{Type: graphql.String},
 | 
					 | 
				
			||||||
					"total": &graphql.Field{Type: graphql.Int},
 | 
										"total": &graphql.Field{Type: graphql.Int},
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
			}),
 | 
								}),
 | 
				
			||||||
@@ -160,7 +159,7 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
				return map[string]interface{}{
 | 
									return map[string]interface{}{
 | 
				
			||||||
					"list":  users,
 | 
										"list":  users,
 | 
				
			||||||
					"next": true,
 | 
										"total": 0,
 | 
				
			||||||
				}, nil
 | 
									}, nil
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
@@ -169,7 +168,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
				Name: "ImageConnection",
 | 
									Name: "ImageConnection",
 | 
				
			||||||
				Fields: graphql.Fields{
 | 
									Fields: graphql.Fields{
 | 
				
			||||||
					"list":  &graphql.Field{Type: graphql.NewList(image)},
 | 
										"list":  &graphql.Field{Type: graphql.NewList(image)},
 | 
				
			||||||
					"next":  &graphql.Field{Type: graphql.String},
 | 
					 | 
				
			||||||
					"total": &graphql.Field{Type: graphql.Int},
 | 
										"total": &graphql.Field{Type: graphql.Int},
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
			}),
 | 
								}),
 | 
				
			||||||
@@ -227,8 +225,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
									}
 | 
														}
 | 
				
			||||||
								}
 | 
													}
 | 
				
			||||||
							}
 | 
												}
 | 
				
			||||||
						case "next":
 | 
											case "total":
 | 
				
			||||||
							fmt.Println("next")
 | 
												fmt.Println("total")
 | 
				
			||||||
						default:
 | 
											default:
 | 
				
			||||||
							fmt.Println(fieldAST.Name.Value)
 | 
												fmt.Println(fieldAST.Name.Value)
 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
@@ -297,7 +295,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
					if id_list_str == "" {
 | 
										if id_list_str == "" {
 | 
				
			||||||
						return map[string]interface{}{
 | 
											return map[string]interface{}{
 | 
				
			||||||
							"list":  []Image{},
 | 
												"list":  []Image{},
 | 
				
			||||||
							"next":  false,
 | 
					 | 
				
			||||||
							"total": 0,
 | 
												"total": 0,
 | 
				
			||||||
						}, nil
 | 
											}, nil
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
@@ -348,7 +345,7 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
				return map[string]interface{}{
 | 
									return map[string]interface{}{
 | 
				
			||||||
					"list":  images,
 | 
										"list":  images,
 | 
				
			||||||
					"next": true,
 | 
										"total": 0,
 | 
				
			||||||
				}, nil
 | 
									}, nil
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user