@anker-in/shopify-sdk 1.2.0-beta.6 → 1.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -936,6 +936,8 @@ var getCollectionsByHandlesQuery = (handles) => (
936
936
  ${productFragment}
937
937
  ${variantFragment}
938
938
  ${metafieldFragment}
939
+ ${imageFragment}
940
+ ${seoFragment}
939
941
 
940
942
  query GetCollectionsByHandles(
941
943
  $collectionMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []
@@ -948,23 +950,27 @@ var getCollectionsByHandlesQuery = (handles) => (
948
950
  `
949
951
  collection_${index}: collection(handle: "${handle}") {
950
952
  ...collection
951
- product(handle: $handle) {
952
- ...product
953
- metafields(identifiers: $productMetafieldIdentifiers) {
954
- ...metafield
955
- }
956
- variants(first: 250) {
957
- nodes {
958
- ...variant
959
- metafields(identifiers: $variantMetafieldIdentifiers) {
953
+ metafields(identifiers: $collectionMetafieldIdentifiers) {
954
+ ...metafield
955
+ }
956
+ products(first: 9) {
957
+ edges {
958
+ node {
959
+ ...product
960
+ metafields(identifiers: $productMetafieldIdentifiers) {
960
961
  ...metafield
961
962
  }
963
+ variants(first: 10) {
964
+ nodes {
965
+ ...variant
966
+ metafields(identifiers: $variantMetafieldIdentifiers) {
967
+ ...metafield
968
+ }
969
+ }
970
+ }
962
971
  }
963
972
  }
964
973
  }
965
- metafields(identifiers: $collectionMetafieldIdentifiers) {
966
- ...metafield
967
- }
968
974
  }
969
975
  `
970
976
  )