Przeglądaj źródła

ProductConnection

- fix: NewProductConnection
Alexey Kim 2 lat temu
rodzic
commit
cf7aec9f16
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      graphql/helper/product.go

+ 1 - 1
graphql/helper/product.go

@@ -44,7 +44,7 @@ func NewProductConnection(src []*generated.Product,
 			Node: connection.Nodes[i],
 		}
 
-		if c, err := model.NewSimpleCursor(e.Node.ID, model.GidCollection); err == nil {
+		if c, err := model.NewSimpleCursor(e.Node.ID, model.GidProduct); err == nil {
 			e.Cursor = *c.String()
 		}