Explorar o código

ProductConnection

- fix: NewProductConnection
Alexey Kim %!s(int64=2) %!d(string=hai) anos
pai
achega
cf7aec9f16
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 		}