Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Fix cacheing collection query
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechdev committed Aug 28, 2020
1 parent eba6420 commit 3a86416
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/Collection/gqlTypes/CollectionProducts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ export interface CollectionProducts_collection_products {

export interface CollectionProducts_collection {
__typename: "Collection";
/**
* The ID of the object.
*/
id: string;
/**
* List of products in this collection.
*/
Expand Down
1 change: 1 addition & 0 deletions src/views/Collection/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const collectionProductsQuery = gql`
$priceGte: Float
) {
collection(id: $id) {
id
products(
after: $after
first: $pageSize
Expand Down

0 comments on commit 3a86416

Please sign in to comment.