Parcourir la source

ProductConnection

- fix: NewProductConnection
Alexey Kim il y a 2 ans
Parent
commit
cf7aec9f16
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()
 		}