Răsfoiți Sursa

ProductConnection

- fix: NewProductConnection
Alexey Kim 2 ani în urmă
părinte
comite
cf7aec9f16
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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()
 		}