You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/product/category-interface.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ The following table defines the `CategoryInterface` attributes and objects.
12
12
Attribute | Type | Description
13
13
--- | --- | ---
14
14
`breadcrumbs` | [Breadcrumb] | A Breadcrumb object contains information the categories that comprise the breadcrumb trail for the specified category
15
+
`cms_block` | CmsBlock | Contains a category CMS block. This attribute is defined in the `CatalogCmsGraphQl` module
15
16
`created_at` | String | Timestamp indicating when the category was created
16
17
`default_sort_by` | String | The attribute to use for sorting
17
18
`description` | String | An optional description of the category
@@ -56,3 +57,7 @@ Attribute | Data type | Description
56
57
`items` | [ProductInterface] | An array of products that are assigned to the category. See [ProductInterface]({{ page.baseurl }}/graphql/product/product-interface.html) for more information
57
58
`page_info` | `SearchResultPageInfo` | An object that includes the `page_info` and `currentPage` values specified in the query
58
59
`total_count` | Int | The number of products returned
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/queries/category-list.md
+2-57Lines changed: 2 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,63 +313,8 @@ Attribute | Data type | Description
313
313
314
314
## Output attributes {#Categories}
315
315
316
-
The query returns a `CategoryTree` object, which implements `CategoryInterface`. It can contain the following top-level attributes:
316
+
The query returns a `CategoryTree` object, which implements [`CategoryInterface`]({{page.baseurl}}/graphql/product/category-interface.html). The `CategoryTree` object can contain the following attribute and all attributes defined in `CategoryInterface`:
317
317
318
318
Attribute | Data type | Description
319
319
--- | --- | ---
320
-
`breadcrumbs` | `Breadcrumb` | A `Breadcrumb` object contains information about the categories that comprise the breadcrumb trail for the specified category
321
-
`children` | `CategoryTree` | A `CategoryTree` object that contains information about a child category. You can specify up to 10 levels of child categories
322
-
`created_at`| String | Timestamp indicating when the category was created
323
-
`default_sort_by`| String | The attribute to use for sorting
324
-
`description`| String | An optional description of the category
325
-
`id` | Int | An ID that uniquely identifies the category
326
-
`level` | Int | Indicates the depth of the category within the tree
327
-
`name`| String | The display name of the category
328
-
`path_in_store`| String | The category path in the store
329
-
`path`| String | The path to the category, as a string of category IDs, separated by slashes (/). For example, `1/2/20`
330
-
`position`| Int | The position of the category relative to other categories at the same level in tree
331
-
`product_count`| Int | The number of products in the category
332
-
`products(<attributes>)` | `CategoryProducts` | The list of products assigned to the category
333
-
`updated_at`| String | Timestamp indicating when the category was updated
334
-
`url_key`| String | The URL key assigned to the category
335
-
`url_path`| String | The URL path assigned to the category
336
-
`url_suffix` | String | The part of the URL that is appended to the `url_key`, such as `.html`. This attribute is defined in the `CatalogUrlRewriteGraphQl` module
337
-
338
-
### CategoryProducts object
339
-
340
-
The `products` attribute can contain the following attributes:
341
-
342
-
Attribute | Data type | Description
343
-
--- | --- | ---
344
-
`currentPage` | Int | Specifies which page of results to return. The default value is 1
345
-
`pageSize` | Int | Specifies the maximum number of results to return at once. This attribute is optional. The default value is 20
346
-
`sort` | `ProductSortInput` | Specifies which attribute to sort on, and whether to return the results in ascending or descending order. [Searches and pagination in GraphQL]({{ page.baseurl }}/graphql/search-pagination.html) describes sort orders
347
-
348
-
The `CategoryProducts` object contains the following attributes:
349
-
350
-
Attribute | Data type | Description
351
-
--- | --- | ---
352
-
`items` | [[ProductInterface]]({{ page.baseurl }}/graphql/product/product-interface.html) | An array of products that are assigned to the category
353
-
`page_info` | `SearchResultPageInfo` | An object that includes the `page_info` and `currentPage` values specified in the query
354
-
`total_count` | Int | The number of products returned
355
-
356
-
### Breadcrumb object
357
-
358
-
A breadcrumb trail is a set of links that shows customers where they are in relation to other pages in the
359
-
store.
360
-
361
-
Attribute | Data type | Description
362
-
--- | --- | ---
363
-
`category_id` | Int | An ID that uniquely identifies the category
364
-
`category_level` | Int | Indicates the depth of the category within the tree
365
-
`category_name` | String | The display name of the category
366
-
`category_url_key` | String | The url key assigned to the category
367
-
`category_url_path` | String | The URL path of the category
368
-
369
-
### CategoryTree object
370
-
371
-
This `CategoryTree` object contains information about the next level of subcategories of the category specified in the original query.
372
-
373
-
Attribute | Data type | Description
374
-
--- | --- | ---
375
-
`children` | [CategoryTree] | An array containing the next level of subcategories
320
+
`children` | `CategoryTree` | An array containing the next level of subcategories. By default, you can specify up to 10 levels of child categories
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/queries/products-234.md
+89-50Lines changed: 89 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ filter: {
50
50
}
51
51
```
52
52
53
-
Magento processes the attribute values specified in a `ProductAttributeFilterInput` as simple data types (strings, integers, Booleans). However, returned attributes can be a different, complex data type. For example, in a response, `price` is an object that contains a monetary value and a currency code.
53
+
Magento processes the attribute values specified in a `ProductAttributeFilterInput` as simple data types (strings, integers, Booleans). However, returned attributes can be a different, complex data type. For example, in a response, `price` is an object that contains a monetary value and a currency code.
54
54
55
55
By default, you can use the following attributes as filters. To define a custom filter, see [Filtering with custom attributes]({{page.baseurl}}/graphql/custom-filters.html). Use the `input_type` output attribute of the [`customAttributeMetadata` query]({{page.baseurl}}/graphql/queries/custom-attribute-metadata.html) to determine whether your custom filter should include the `FilterEqualTypeInput`, `FilterMatchTypeInput`, or `FilterRangeTypeInput` data type.
56
56
@@ -521,9 +521,9 @@ The following query returns aggregations for a query that filters on items with
521
521
items {
522
522
name
523
523
sku
524
-
price {
525
-
regularPrice {
526
-
amount {
524
+
price_range {
525
+
minimum_price {
526
+
regular_price {
527
527
value
528
528
currency
529
529
}
@@ -563,6 +563,11 @@ The following query returns aggregations for a query that filters on items with
563
563
"count": 5,
564
564
"label": "Category",
565
565
"options": [
566
+
{
567
+
"label": "New Luma Yoga Collection",
568
+
"value": "8",
569
+
"count": 1
570
+
},
566
571
{
567
572
"label": "Bottoms",
568
573
"value": "22",
@@ -582,11 +587,6 @@ The following query returns aggregations for a query that filters on items with
582
587
"label": "Performance Fabrics",
583
588
"value": "35",
584
589
"count": 2
585
-
},
586
-
{
587
-
"label": "New Luma Yoga Collection",
588
-
"value": "8",
589
-
"count": 1
590
590
}
591
591
]
592
592
},
@@ -642,6 +642,21 @@ The following query returns aggregations for a query that filters on items with
642
642
"count": 7,
643
643
"label": "Material",
644
644
"options": [
645
+
{
646
+
"label": "Nylon",
647
+
"value": "37",
648
+
"count": 1
649
+
},
650
+
{
651
+
"label": "Rayon",
652
+
"value": "39",
653
+
"count": 1
654
+
},
655
+
{
656
+
"label": "LumaTech™",
657
+
"value": "148",
658
+
"count": 1
659
+
},
645
660
{
646
661
"label": "Microfiber",
647
662
"value": "150",
@@ -661,21 +676,6 @@ The following query returns aggregations for a query that filters on items with
661
676
"label": "CoolTech™",
662
677
"value": "156",
663
678
"count": 2
664
-
},
665
-
{
666
-
"label": "LumaTech™",
667
-
"value": "148",
668
-
"count": 1
669
-
},
670
-
{
671
-
"label": "Nylon",
672
-
"value": "37",
673
-
"count": 1
674
-
},
675
-
{
676
-
"label": "Rayon",
677
-
"value": "39",
678
-
"count": 1
679
679
}
680
680
]
681
681
},
@@ -697,10 +697,15 @@ The following query returns aggregations for a query that filters on items with
697
697
]
698
698
},
699
699
{
700
-
"attribute_code": "eco_collection_bucket",
701
-
"count": 1,
702
-
"label": "eco_collection_bucket",
700
+
"attribute_code": "eco_collection",
701
+
"count": 2,
702
+
"label": "Eco Collection",
703
703
"options": [
704
+
{
705
+
"label": "0",
706
+
"value": "0",
707
+
"count": 3
708
+
},
704
709
{
705
710
"label": "1",
706
711
"value": "1",
@@ -709,10 +714,15 @@ The following query returns aggregations for a query that filters on items with
709
714
]
710
715
},
711
716
{
712
-
"attribute_code": "performance_fabric_bucket",
713
-
"count": 1,
714
-
"label": "performance_fabric_bucket",
717
+
"attribute_code": "performance_fabric",
718
+
"count": 2,
719
+
"label": "Performance Fabric",
715
720
"options": [
721
+
{
722
+
"label": "0",
723
+
"value": "0",
724
+
"count": 2
725
+
},
716
726
{
717
727
"label": "1",
718
728
"value": "1",
@@ -721,17 +731,46 @@ The following query returns aggregations for a query that filters on items with
721
731
]
722
732
},
723
733
{
724
-
"attribute_code": "new_bucket",
734
+
"attribute_code": "erin_recommends",
725
735
"count": 1,
726
-
"label": "new_bucket",
736
+
"label": "Erin Recommends",
737
+
"options": [
738
+
{
739
+
"label": "0",
740
+
"value": "0",
741
+
"count": 4
742
+
}
743
+
]
744
+
},
745
+
{
746
+
"attribute_code": "new",
747
+
"count": 2,
748
+
"label": "New",
727
749
"options": [
750
+
{
751
+
"label": "0",
752
+
"value": "0",
753
+
"count": 3
754
+
},
728
755
{
729
756
"label": "1",
730
757
"value": "1",
731
758
"count": 1
732
759
}
733
760
]
734
761
},
762
+
{
763
+
"attribute_code": "sale",
764
+
"count": 1,
765
+
"label": "Sale",
766
+
"options": [
767
+
{
768
+
"label": "0",
769
+
"value": "0",
770
+
"count": 4
771
+
}
772
+
]
773
+
},
735
774
{
736
775
"attribute_code": "style_bottom",
737
776
"count": 5,
@@ -797,19 +836,19 @@ The following query returns aggregations for a query that filters on items with
797
836
"count": 4
798
837
},
799
838
{
800
-
"label": "Hot",
801
-
"value": "212",
802
-
"count": 3
839
+
"label": "Spring",
840
+
"value": "208",
841
+
"count": 1
803
842
},
804
843
{
805
844
"label": "Warm",
806
845
"value": "209",
807
846
"count": 2
808
847
},
809
848
{
810
-
"label": "Spring",
811
-
"value": "208",
812
-
"count": 1
849
+
"label": "Hot",
850
+
"value": "212",
851
+
"count": 3
813
852
}
814
853
]
815
854
}
@@ -818,9 +857,9 @@ The following query returns aggregations for a query that filters on items with
818
857
{
819
858
"name": "Karmen Yoga Pant",
820
859
"sku": "WP01",
821
-
"price": {
822
-
"regularPrice": {
823
-
"amount": {
860
+
"price_range": {
861
+
"minimum_price": {
862
+
"regular_price": {
824
863
"value": 39,
825
864
"currency": "USD"
826
865
}
@@ -830,9 +869,9 @@ The following query returns aggregations for a query that filters on items with
830
869
{
831
870
"name": "Ida Workout Parachute Pant",
832
871
"sku": "WP03",
833
-
"price": {
834
-
"regularPrice": {
835
-
"amount": {
872
+
"price_range": {
873
+
"minimum_price": {
874
+
"regular_price": {
836
875
"value": 48,
837
876
"currency": "USD"
838
877
}
@@ -842,9 +881,9 @@ The following query returns aggregations for a query that filters on items with
842
881
{
843
882
"name": "Bardot Capri",
844
883
"sku": "WP08",
845
-
"price": {
846
-
"regularPrice": {
847
-
"amount": {
884
+
"price_range": {
885
+
"minimum_price": {
886
+
"regular_price": {
848
887
"value": 48,
849
888
"currency": "USD"
850
889
}
@@ -854,9 +893,9 @@ The following query returns aggregations for a query that filters on items with
0 commit comments