public class ProductsQuery extends AbstractQuery<ProductsQuery>
_queryBuilder, ALIAS_SUFFIX_SEPARATOR, CUSTOM_FIELD_LABEL| Modifier and Type | Method and Description |
|---|---|
ProductsQuery |
addFragmentReference(Fragment<ProductsQuery> fragment)
Adds a
ProductsQuery fragment reference at the current position of the query. |
ProductsQuery |
aggregations(AggregationQueryDefinition queryDef)
Layered navigation aggregations.
|
static Fragment<ProductsQuery> |
createFragment(String name,
ProductsQueryDefinition queryDef)
Creates a GraphQL "named" fragment with the specified query type definition.
|
ProductsQuery |
filters(LayerFilterQueryDefinition queryDef)
Deprecated.
Use aggregations instead
|
ProductsQuery |
items(ProductInterfaceQueryDefinition queryDef)
An array of products that match the specified search criteria.
|
ProductsQuery |
pageInfo(SearchResultPageInfoQueryDefinition queryDef)
An object that includes the page_info and currentPage values specified in the query.
|
ProductsQuery |
sortFields(SortFieldsQueryDefinition queryDef)
An object that includes the default sort field and all available sort fields.
|
ProductsQuery |
totalCount()
The number of products that are marked as visible.
|
addCustomObjectField, addCustomSimpleField, appendQuotedString, startField, startInlineFragment, withAliaspublic ProductsQuery aggregations(AggregationQueryDefinition queryDef)
@Deprecated public ProductsQuery filters(LayerFilterQueryDefinition queryDef)
public ProductsQuery items(ProductInterfaceQueryDefinition queryDef)
public ProductsQuery pageInfo(SearchResultPageInfoQueryDefinition queryDef)
public ProductsQuery sortFields(SortFieldsQueryDefinition queryDef)
public ProductsQuery totalCount()
public static Fragment<ProductsQuery> createFragment(String name, ProductsQueryDefinition queryDef)
name - The name of the fragment, must be unique for a given GraphQL request.queryDef - The fragment definition.public ProductsQuery addFragmentReference(Fragment<ProductsQuery> fragment)
ProductsQuery fragment reference at the current position of the query.
For example for a fragment named test, calling this method will add the
reference ...test in the query. For GraphQL types implementing an interface, there
will be some similar methods using the Query type of each implemented interface.fragment - The fragment to reference.Copyright © 2022 Adobe. All rights reserved.