Internal Structure
Class CollectionsQuery
CollectionsQuery
Description: A general collection and collection-list query declaration. Read more: Query controller, TypedQuery
Namespace: ShopifyCollections/Api/Collections/Query/CollectionsQuery
Method _getCollectionFields
_getCollectionFields
Description: A function which returns an array of collection fields. Read more: Extending Query controllers
Method getCollectionByHandleField
getCollectionByHandleField
Description: General collection field getter (by handle) [returns node]
Method getCollectionsField
getCollectionsField
Description: General collection list field getter [returns edges]
Function collectionsResponseProcessor
collectionsResponseProcessor
Description: The collection-list query response processor (from edges and nodes creates an array of collections)
Namespace: ShopifyCollections/Api/Collections/Processor/collectionsResponseProcessor
Function processCollection
processCollection
Description: The single product processor. Returns void, instead it modifies the passed argument.
Namespace: ShopifyCollections/Api/Collections/Processor/processCollection
🔮 Common extension point: Great place to add some "calculated" field into collection
Function processCollectionByHandleResponse
processCollectionByHandleResponse
Description: The single collection query response processor
Namespace: ShopifyCollections/Api/Collections/Processor/processCollectionByHandleResponse
Variable PAGINATED_COLLECTIONS
PAGINATED_COLLECTIONS
Description: A type of CollectionsQuery
associated with getCollectionsField
function.
Usage examples:
Variable SINGLE_COLLECTION
SINGLE_COLLECTION
Description: A type of CollectionsQuery
associated with getCollectionByHandleField
function.
Usage examples:
Class CollectionCardComponent
CollectionCardComponent
Description: The collection card (preview) component
Namespace: ShopifyCollections/Component/CollectionCard/Component/CollectionCardComponent
Member sortedRenderMap
sortedRenderMap
Description: A list of render methods used by collection card. Read more: SortedRenderMap
Function CollectionFallbackPage
CollectionFallbackPage
Description: A component used as fallback while the collection page is loading
Namespace: ShopifyCollections/Component/CollectionFallbackPage/Index/CollectionFallbackPage
Class CollectionPageComponent
CollectionPageComponent
Description: Collection page component
Namespace: ShopifyCollections/Component/CollectionPage/Component/CollectionPageComponent
Member sortedRenderMap
sortedRenderMap
Description: A list of render methods used by collection page. Read more: SortedRenderMap
Function CollectionsFallbackPage
CollectionsFallbackPage
Description: A component used as fallback while the collections page is loading
Namespace: ShopifyCollections/Component/CollectionsFallbackPage/Index/CollectionsFallbackPage
Class CollectionsPageComponent
CollectionsPageComponent
Description: Product listing page component
Namespace: ShopifyCollections/Component/CollectionsPage/Component/CollectionsPageComponent
Last updated