Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / src / endpoints / catalog / queries / SearchQuery.graphql
Size: Mime:
#import "./PropertiesFragment.graphql"

query SearchQuery(
  $search: String!
  $limit: Int = 8
  $offset: Int = 0
  $sort: String
  $selectedFacets: [FacetsInput]
) {
  search(
    search: $search
    limit: $limit
    offset: $offset
    sort: $sort
    selectedFacets: $selectedFacets
  ) {
    # refine fragment
    productFilter {
      facets {
        name
        values {
          identifier
          name
          count
        }
      }
      selectedFilters {
        label
        value
      }
    }
    productSort {
      options {
        label
        value
      }
      sortedBy
    }

    # rest
    identifier
    image
    name
    productCount
    searchterm

    products {
      identifier
      image
      type
      name
      ...Properties

      children {
        skus {
          identifier
          image
          type
          name
          properties {
            buyinfo {
              pricing {
                currencycode
                prices {
                  type
                  ismin
                  ismax
                  label
                  value
                }
              }
              inventorystatus
              instock
              preorder
              preorderdate
              deliverydate
              availability {
                instore
              }
            }
            iteminfo {
              flags {
                label
                value
              }
              additionalimages {
                label
                value
              }
              additionalinfo {
                label
                value
              }
            }
            state {
              starttime
            }
            skuinfo {
              color {
                name
              }
              size1 {
                name
              }
              style {
                name
              }
            }
          }
        }
        products {
          identifier
          image
          type
          name
          ...Properties
          children {
            skus {
              identifier
              image
              type
              name
              properties {
                buyinfo {
                  pricing {
                    currencycode
                    prices {
                      type
                      ismin
                      ismax
                      label
                      value
                    }
                  }
                  inventorystatus
                  instock
                  preorder
                  preorderdate
                  deliverydate
                  availability {
                    instore
                  }
                }
                iteminfo {
                  flags {
                    label
                    value
                  }
                  additionalimages {
                    label
                    value
                  }
                  additionalinfo {
                    label
                    value
                  }
                }
                state {
                  starttime
                }
                skuinfo {
                  color {
                    name
                  }
                  size1 {
                    name
                  }
                  style {
                    name
                  }
                }
              }
            }
          }
        }
        relatedproducts {
          identifier
          image
          type
          name
          ...Properties
          # properties {
          # 	buyinfo {
          #   	pricing {
          #     	currencycode
          #       prices {
          #         type
          #         ismin
          #         ismax
          #         label
          #         value
          #       }
          #   	}
          #     inventorystatus
          #     instock
          #     preorder
          #     preorderdate
          #     deliverydate
          #     availability {
          #       instore
          #     }
          #   }
          #   iteminfo {
          #     categoryids {
          #       label
          #       value
          #     }
          #     flags {
          #       label
          #       value
          #     }
          #     videos {
          #       label
          #       value
          #     }
          #     additionalimages {
          #       label
          #       value
          #     }
          #     isgroupproduct
          #   }
          #   reviewrating {
          #     reviewcount
          #     recommendedcount
          #     reviews {
          #       count
          #       value
          #     }
          #     rating
          #     ratingrange
          #   }
          #   skuinfo {
          #     color {
          #       image
          #       name
          #     }
          #     size1 {
          #       name
          #     }
          #     style {
          #       name
          #     }
          #   }
          #   state {
          #     starttime
          #     additionalinfo {
          #       label
          #       value
          #     }
          #   }
          # }
          children {
            skus {
              identifier
              image
              type
              name
              properties {
                buyinfo {
                  pricing {
                    currencycode
                    prices {
                      type
                      ismin
                      ismax
                      label
                      value
                    }
                  }
                  inventorystatus
                  instock
                  preorder
                  preorderdate
                  deliverydate
                  availability {
                    instore
                  }
                }
                iteminfo {
                  flags {
                    label
                    value
                  }
                  additionalimages {
                    label
                    value
                  }
                  additionalinfo {
                    label
                    value
                  }
                }
                state {
                  starttime
                }
                skuinfo {
                  color {
                    name
                  }
                  size1 {
                    name
                  }
                  style {
                    name
                  }
                }
              }
            }
            products {
              identifier
              image
              type
              name
              ...Properties
              children {
                skus {
                  identifier
                  image
                  type
                  name
                  properties {
                    buyinfo {
                      pricing {
                        currencycode
                        prices {
                          type
                          ismin
                          ismax
                          label
                          value
                        }
                      }
                      inventorystatus
                      instock
                      preorder
                      preorderdate
                      deliverydate
                      availability {
                        instore
                      }
                    }
                    iteminfo {
                      flags {
                        label
                        value
                      }
                      additionalimages {
                        label
                        value
                      }
                      additionalinfo {
                        label
                        value
                      }
                    }
                    state {
                      starttime
                    }
                    skuinfo {
                      color {
                        name
                      }
                      size1 {
                        name
                      }
                      style {
                        name
                      }
                    }
                  }
                }
              }
            }
          }
        }
        recommentedproducts {
          identifier
          image
          type
          name
          ...Properties
          # properties {
          #   buyinfo {
          #     pricing {
          #       currencycode
          #       prices {
          #         type
          #         ismin
          #         ismax
          #         label
          #         value
          #       }
          #     }
          #     inventorystatus
          #     instock
          #     preorder
          #     preorderdate
          #     deliverydate
          #     availability {
          #       instore
          #     }
          #   }
          #   iteminfo {
          #     categoryids {
          #       label
          #       value
          #     }
          #     flags {
          #       label
          #       value
          #     }
          #     videos {
          #       label
          #       value
          #     }
          #     additionalimages {
          #       label
          #       value
          #     }
          #     isgroupproduct
          #   }
          #   reviewrating {
          #     reviewcount
          #     recommendedcount
          #     reviews {
          #       count
          #       value
          #     }
          #     rating
          #     ratingrange
          #   }
          #   skuinfo {
          #     color {
          #       image
          #       name
          #     }
          #     size1 {
          #       name
          #     }
          #     style {
          #       name
          #     }
          #   }
          #   state {
          #     starttime
          #     additionalinfo {
          #       label
          #       value
          #     }
          #   }
          # }
          children {
            skus {
              identifier
              image
              type
              name
              properties {
                buyinfo {
                  pricing {
                    currencycode
                    prices {
                      type
                      ismin
                      ismax
                      label
                      value
                    }
                  }
                  inventorystatus
                  instock
                  preorder
                  preorderdate
                  deliverydate
                  availability {
                    instore
                  }
                }
                iteminfo {
                  flags {
                    label
                    value
                  }
                  additionalimages {
                    label
                    value
                  }
                  additionalinfo {
                    label
                    value
                  }
                }
                state {
                  starttime
                }
                skuinfo {
                  color {
                    name
                  }
                  size1 {
                    name
                  }
                  style {
                    name
                  }
                }
              }
            }
            products {
              identifier
              image
              type
              name
              ...Properties
              children {
                skus {
                  identifier
                  image
                  type
                  name
                  properties {
                    buyinfo {
                      pricing {
                        currencycode
                        prices {
                          type
                          ismin
                          ismax
                          label
                          value
                        }
                      }
                      inventorystatus
                      instock
                      preorder
                      preorderdate
                      deliverydate
                      availability {
                        instore
                      }
                    }
                    iteminfo {
                      flags {
                        label
                        value
                      }
                      additionalimages {
                        label
                        value
                      }
                      additionalinfo {
                        label
                        value
                      }
                    }
                    state {
                      starttime
                    }
                    skuinfo {
                      color {
                        name
                      }
                      size1 {
                        name
                      }
                      style {
                        name
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    # array
    additional {
      label
      value
    }
    categoryIds {
      label
      value
    }
  }
}