|
@@ -24,15 +24,10 @@ func NewProductTagConnection(src []model.ProductTag,
|
|
|
|
|
|
// Edges
|
|
|
for i := range src {
|
|
|
- e := &generated.StringEdge{
|
|
|
- Node: src[i].Tag,
|
|
|
- }
|
|
|
-
|
|
|
- if c, err := model.NewSimpleCursor(src[i].Tag, ""); err == nil {
|
|
|
- e.Cursor = *c.String()
|
|
|
- }
|
|
|
-
|
|
|
- connection.Edges = append(connection.Edges, e)
|
|
|
+ connection.Edges = append(connection.Edges, &generated.StringEdge{
|
|
|
+ Cursor: *model.NewSimpleCursor(src[i].Tag).String(),
|
|
|
+ Node: src[i].Tag,
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
return connection, nil
|