|
@@ -273,8 +273,13 @@ func (r *productVariantResolver) Title(ctx context.Context, variant *generated.P
|
|
return strings.Join(s, " / "), nil
|
|
return strings.Join(s, " / "), nil
|
|
}
|
|
}
|
|
|
|
|
|
-func (r *queryResolver) ProductTags(ctx context.Context, first int) (*generated.StringConnection, error) {
|
|
|
|
- panic("not implemented")
|
|
|
|
|
|
+func (r *queryResolver) ProductTags(_ context.Context, first int) (*generated.StringConnection, error) {
|
|
|
|
+ tags, err := r.db.ProductTags()
|
|
|
|
+ if err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return helper.NewProductTagConnection(tags, &first, nil, nil)
|
|
}
|
|
}
|
|
|
|
|
|
func (r *queryResolver) ProductTypes(ctx context.Context, first int) (*generated.StringConnection, error) {
|
|
func (r *queryResolver) ProductTypes(ctx context.Context, first int) (*generated.StringConnection, error) {
|