Skip to content

Commit

Permalink
Merge pull request wesbos#224 from phc5/master
Browse files Browse the repository at this point in the history
Adds id for photo in SINGLE_ITEM_QUERY allowing Apollo to uniquely identify object in cache
  • Loading branch information
wesbos authored Mar 5, 2021
2 parents 9935b8e + 95f1c4d commit 11942d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions finished-application/frontend/components/SingleProduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const SINGLE_ITEM_QUERY = gql`
description
id
photo {
id
altText
image {
publicUrlTransformed
Expand Down
1 change: 1 addition & 0 deletions stepped-solutions/28/SingleProduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const SINGLE_ITEM_QUERY = gql`
description
id
photo {
id
altText
image {
publicUrlTransformed
Expand Down

0 comments on commit 11942d9

Please sign in to comment.