Преглед на файлове

ProductConnection

- fix: NewProductConnection
Alexey Kim преди 2 години
родител
ревизия
cf7aec9f16
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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()
 		}