From 35d1baa15533597ec7700d047d6f7ca8b77290f2 Mon Sep 17 00:00:00 2001 From: George Date: Thu, 29 Feb 2024 19:58:55 +0100 Subject: [PATCH] fix: artist cover image meta (#13552) * fix: artist cover image meta * fix: tests * fix: tests --- .../Components/ArtistMeta/ArtistMeta.tsx | 14 +- .../ArtistMeta/__tests__/ArtistMeta.jest.tsx | 4 +- .../ArtistMeta/__tests__/helpers.jest.ts | 2 - .../Artist/Components/ArtistMeta/helpers.ts | 2 +- .../ArtistApp_Test_Query.graphql.ts | 337 ++++++++---------- .../ArtistMeta_Test_Query.graphql.ts | 100 +++--- .../ArtistMeta_artist.graphql.ts | 45 +-- .../artistRoutes_ArtistAppQuery.graphql.ts | 165 ++++----- .../artistRoutes_ArtistSubAppQuery.graphql.ts | 74 ++-- 9 files changed, 325 insertions(+), 418 deletions(-) diff --git a/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx b/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx index c77906965cb..4d238577a12 100644 --- a/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx +++ b/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx @@ -11,14 +11,14 @@ interface Props { } export const ArtistMeta: React.FC = ({ artist }) => { - const alternateNames = artist?.alternate_names || [] + const alternateNames = artist?.alternateNames || [] return ( <> @@ -66,11 +66,11 @@ export const ArtistMetaFragmentContainer = createFragmentContainer(ArtistMeta, { description title } - alternate_names: alternateNames - image { - versions - large: url(version: "large") - square: url(version: "square") + alternateNames + coverArtwork { + image { + large: url(version: "large") + } } counts { artworks diff --git a/src/Apps/Artist/Components/ArtistMeta/__tests__/ArtistMeta.jest.tsx b/src/Apps/Artist/Components/ArtistMeta/__tests__/ArtistMeta.jest.tsx index 9ab245ee295..0af8d844675 100644 --- a/src/Apps/Artist/Components/ArtistMeta/__tests__/ArtistMeta.jest.tsx +++ b/src/Apps/Artist/Components/ArtistMeta/__tests__/ArtistMeta.jest.tsx @@ -149,13 +149,13 @@ describe("AdminMeta", () => { describe("alternate names", () => { it("skips rendering them without the data", () => { - const artist = { alternate_names: [] } + const artist = { alternateNames: [] } renderWithRelay({ Artist: () => artist }) expect(getMetaBy({ name: "skos:prefLabel" })).toBeNull() }) it("renders them with the data", () => { - const artist = { alternate_names: ["Bonnie", "Betty"] } + const artist = { alternateNames: ["Bonnie", "Betty"] } renderWithRelay({ Artist: () => artist }) expect( getMetaBy({ name: "skos:prefLabel", content: "Bonnie; Betty" }) diff --git a/src/Apps/Artist/Components/ArtistMeta/__tests__/helpers.jest.ts b/src/Apps/Artist/Components/ArtistMeta/__tests__/helpers.jest.ts index 672299432a2..fe3090d05ff 100644 --- a/src/Apps/Artist/Components/ArtistMeta/__tests__/helpers.jest.ts +++ b/src/Apps/Artist/Components/ArtistMeta/__tests__/helpers.jest.ts @@ -113,8 +113,6 @@ describe("Meta", () => { description: "Discover and purchase Claes Oldenburg’s artworks, available for sale. Browse our selection of paintings, prints, and sculptures by the artist, and find art you love.", gender: "male", - image: - "https://d32dm0rphc51dk.cloudfront.net/6q6LeyKvA_vpT5YzHRSNUA/large.jpg", mainEntityOfPage: "https://www.artsy-test.net/artist/claes-oldenburg", makesOffer: [ { diff --git a/src/Apps/Artist/Components/ArtistMeta/helpers.ts b/src/Apps/Artist/Components/ArtistMeta/helpers.ts index 95fb4420f3e..8837806ca58 100644 --- a/src/Apps/Artist/Components/ArtistMeta/helpers.ts +++ b/src/Apps/Artist/Components/ArtistMeta/helpers.ts @@ -140,7 +140,7 @@ export const structuredDataAttributes = (artist: ArtistMeta_artist$data) => { deathDate: artist.deathday, description: artist.meta ? artist.meta.description : "", gender: artist.gender, - image: artist.image ? artist.image.large : "", + image: artist.coverArtwork?.image ? artist.coverArtwork.image.large : "", mainEntityOfPage: `${getENV("APP_URL")}${artist.href}`, makesOffer, name: artist.name, diff --git a/src/__generated__/ArtistApp_Test_Query.graphql.ts b/src/__generated__/ArtistApp_Test_Query.graphql.ts index a1f86601c2b..5f107c9615e 100644 --- a/src/__generated__/ArtistApp_Test_Query.graphql.ts +++ b/src/__generated__/ArtistApp_Test_Query.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<3a4bdb7905af84d447a0b08df45a6b0a>> * @lightSyntaxTransform * @nogrep */ @@ -71,14 +71,21 @@ v5 = { "storageKey": "url(version:\"large\")" }, v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v7 = { "alias": null, "args": null, "kind": "ScalarField", "name": "major", "storageKey": null }, -v7 = [ - (v6/*: any*/), +v8 = [ + (v7/*: any*/), { "alias": null, "args": null, @@ -87,7 +94,7 @@ v7 = [ "storageKey": null } ], -v8 = { +v9 = { "alias": null, "args": null, "concreteType": "Image", @@ -112,13 +119,6 @@ v8 = { ], "storageKey": null }, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, v10 = { "alias": null, "args": null, @@ -141,72 +141,66 @@ v12 = [ } ], v13 = { - "enumValues": null, - "nullable": true, - "plural": true, - "type": "String" -}, -v14 = { "enumValues": null, "nullable": true, "plural": false, "type": "Artwork" }, -v15 = { +v14 = { "enumValues": null, "nullable": true, "plural": false, "type": "String" }, -v16 = { +v15 = { "enumValues": null, "nullable": false, "plural": false, "type": "ID" }, -v17 = { +v16 = { "enumValues": null, "nullable": true, "plural": false, "type": "Image" }, -v18 = { +v17 = { "enumValues": null, "nullable": false, "plural": false, "type": "String" }, -v19 = { +v18 = { "enumValues": null, "nullable": false, "plural": false, "type": "Float" }, -v20 = { +v19 = { "enumValues": null, "nullable": true, "plural": false, "type": "Money" }, -v21 = { +v20 = { "enumValues": null, "nullable": true, "plural": false, "type": "Profile" }, -v22 = { +v21 = { "enumValues": null, "nullable": true, "plural": false, "type": "FormattedNumber" }, -v23 = { +v22 = { "enumValues": null, "nullable": true, "plural": false, "type": "Int" }, -v24 = { +v23 = { "enumValues": null, "nullable": true, "plural": false, @@ -310,7 +304,7 @@ return { "storageKey": "meta(page:\"ABOUT\")" }, { - "alias": "alternate_names", + "alias": null, "args": null, "kind": "ScalarField", "name": "alternateNames", @@ -319,32 +313,56 @@ return { { "alias": null, "args": null, - "concreteType": "Image", + "concreteType": "Artwork", "kind": "LinkedField", - "name": "image", + "name": "coverArtwork", "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "versions", - "storageKey": null - }, - (v5/*: any*/), - { - "alias": "square", - "args": [ + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + (v5/*: any*/), + { + "alias": "src", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": [ + "larger", + "larger" + ] + } + ], + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:[\"larger\",\"larger\"])" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "width", + "storageKey": null + }, { - "kind": "Literal", - "name": "version", - "value": "square" + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "height", + "storageKey": null } ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"square\")" - } + "storageKey": null + }, + (v6/*: any*/), + (v4/*: any*/), + (v2/*: any*/) ], "storageKey": null }, @@ -468,7 +486,7 @@ return { "kind": "LinkedField", "name": "minPrice", "plural": false, - "selections": (v7/*: any*/), + "selections": (v8/*: any*/), "storageKey": null }, { @@ -479,7 +497,7 @@ return { "name": "maxPrice", "plural": false, "selections": [ - (v6/*: any*/) + (v7/*: any*/) ], "storageKey": null } @@ -489,7 +507,7 @@ return { }, { "kind": "InlineFragment", - "selections": (v7/*: any*/), + "selections": (v8/*: any*/), "type": "Money", "abstractKey": null } @@ -504,7 +522,7 @@ return { "storageKey": null }, (v2/*: any*/), - (v8/*: any*/), + (v9/*: any*/), { "alias": null, "args": null, @@ -523,16 +541,16 @@ return { "name": "profile", "plural": false, "selections": [ - (v8/*: any*/), - (v9/*: any*/) + (v9/*: any*/), + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null } @@ -703,81 +721,26 @@ return { ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - { - "alias": null, - "args": null, - "concreteType": "Artwork", - "kind": "LinkedField", - "name": "coverArtwork", - "plural": false, - "selections": [ - (v4/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Image", - "kind": "LinkedField", - "name": "image", - "plural": false, - "selections": [ - { - "alias": "src", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": [ - "larger", - "larger" - ] - } - ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:[\"larger\",\"larger\"])" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "width", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "height", - "storageKey": null - } - ], - "storageKey": null - }, - (v9/*: any*/) - ], - "storageKey": null - }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": "artist(id:\"example\")" } ] }, "params": { - "cacheID": "da4400cc8dfe3b809a169abe9519a88e", + "cacheID": "238fa922dc106634597a59d3717e73ba", "id": null, "metadata": { "relayTestingSelectionTypeInfo": { @@ -787,7 +750,12 @@ return { "plural": false, "type": "Artist" }, - "artist.alternate_names": (v13/*: any*/), + "artist.alternateNames": { + "enumValues": null, + "nullable": true, + "plural": true, + "type": "String" + }, "artist.artworks_connection": { "enumValues": null, "nullable": true, @@ -800,88 +768,85 @@ return { "plural": true, "type": "ArtworkEdge" }, - "artist.artworks_connection.edges.node": (v14/*: any*/), - "artist.artworks_connection.edges.node.availability": (v15/*: any*/), - "artist.artworks_connection.edges.node.category": (v15/*: any*/), - "artist.artworks_connection.edges.node.date": (v15/*: any*/), - "artist.artworks_connection.edges.node.description": (v15/*: any*/), - "artist.artworks_connection.edges.node.href": (v15/*: any*/), - "artist.artworks_connection.edges.node.id": (v16/*: any*/), - "artist.artworks_connection.edges.node.image": (v17/*: any*/), - "artist.artworks_connection.edges.node.image.large": (v15/*: any*/), - "artist.artworks_connection.edges.node.image.small": (v15/*: any*/), + "artist.artworks_connection.edges.node": (v13/*: any*/), + "artist.artworks_connection.edges.node.availability": (v14/*: any*/), + "artist.artworks_connection.edges.node.category": (v14/*: any*/), + "artist.artworks_connection.edges.node.date": (v14/*: any*/), + "artist.artworks_connection.edges.node.description": (v14/*: any*/), + "artist.artworks_connection.edges.node.href": (v14/*: any*/), + "artist.artworks_connection.edges.node.id": (v15/*: any*/), + "artist.artworks_connection.edges.node.image": (v16/*: any*/), + "artist.artworks_connection.edges.node.image.large": (v14/*: any*/), + "artist.artworks_connection.edges.node.image.small": (v14/*: any*/), "artist.artworks_connection.edges.node.listPrice": { "enumValues": null, "nullable": true, "plural": false, "type": "ListPrice" }, - "artist.artworks_connection.edges.node.listPrice.__typename": (v18/*: any*/), - "artist.artworks_connection.edges.node.listPrice.currencyCode": (v18/*: any*/), - "artist.artworks_connection.edges.node.listPrice.major": (v19/*: any*/), - "artist.artworks_connection.edges.node.listPrice.maxPrice": (v20/*: any*/), - "artist.artworks_connection.edges.node.listPrice.maxPrice.major": (v19/*: any*/), - "artist.artworks_connection.edges.node.listPrice.minPrice": (v20/*: any*/), - "artist.artworks_connection.edges.node.listPrice.minPrice.currencyCode": (v18/*: any*/), - "artist.artworks_connection.edges.node.listPrice.minPrice.major": (v19/*: any*/), + "artist.artworks_connection.edges.node.listPrice.__typename": (v17/*: any*/), + "artist.artworks_connection.edges.node.listPrice.currencyCode": (v17/*: any*/), + "artist.artworks_connection.edges.node.listPrice.major": (v18/*: any*/), + "artist.artworks_connection.edges.node.listPrice.maxPrice": (v19/*: any*/), + "artist.artworks_connection.edges.node.listPrice.maxPrice.major": (v18/*: any*/), + "artist.artworks_connection.edges.node.listPrice.minPrice": (v19/*: any*/), + "artist.artworks_connection.edges.node.listPrice.minPrice.currencyCode": (v17/*: any*/), + "artist.artworks_connection.edges.node.listPrice.minPrice.major": (v18/*: any*/), "artist.artworks_connection.edges.node.partner": { "enumValues": null, "nullable": true, "plural": false, "type": "Partner" }, - "artist.artworks_connection.edges.node.partner.href": (v15/*: any*/), - "artist.artworks_connection.edges.node.partner.id": (v16/*: any*/), - "artist.artworks_connection.edges.node.partner.name": (v15/*: any*/), - "artist.artworks_connection.edges.node.partner.profile": (v21/*: any*/), - "artist.artworks_connection.edges.node.partner.profile.id": (v16/*: any*/), - "artist.artworks_connection.edges.node.partner.profile.image": (v17/*: any*/), - "artist.artworks_connection.edges.node.partner.profile.image.large": (v15/*: any*/), - "artist.artworks_connection.edges.node.partner.profile.image.small": (v15/*: any*/), - "artist.artworks_connection.edges.node.price_currency": (v15/*: any*/), - "artist.artworks_connection.edges.node.title": (v15/*: any*/), + "artist.artworks_connection.edges.node.partner.href": (v14/*: any*/), + "artist.artworks_connection.edges.node.partner.id": (v15/*: any*/), + "artist.artworks_connection.edges.node.partner.name": (v14/*: any*/), + "artist.artworks_connection.edges.node.partner.profile": (v20/*: any*/), + "artist.artworks_connection.edges.node.partner.profile.id": (v15/*: any*/), + "artist.artworks_connection.edges.node.partner.profile.image": (v16/*: any*/), + "artist.artworks_connection.edges.node.partner.profile.image.large": (v14/*: any*/), + "artist.artworks_connection.edges.node.partner.profile.image.small": (v14/*: any*/), + "artist.artworks_connection.edges.node.price_currency": (v14/*: any*/), + "artist.artworks_connection.edges.node.title": (v14/*: any*/), "artist.biographyBlurb": { "enumValues": null, "nullable": true, "plural": false, "type": "ArtistBlurb" }, - "artist.biographyBlurb.credit": (v15/*: any*/), - "artist.biographyBlurb.text": (v15/*: any*/), - "artist.birthday": (v15/*: any*/), - "artist.blurb": (v15/*: any*/), + "artist.biographyBlurb.credit": (v14/*: any*/), + "artist.biographyBlurb.text": (v14/*: any*/), + "artist.birthday": (v14/*: any*/), + "artist.blurb": (v14/*: any*/), "artist.counts": { "enumValues": null, "nullable": true, "plural": false, "type": "ArtistCounts" }, - "artist.counts.artworks": (v22/*: any*/), - "artist.counts.follows": (v22/*: any*/), - "artist.coverArtwork": (v14/*: any*/), - "artist.coverArtwork.href": (v15/*: any*/), - "artist.coverArtwork.id": (v16/*: any*/), - "artist.coverArtwork.image": (v17/*: any*/), - "artist.coverArtwork.image.height": (v23/*: any*/), - "artist.coverArtwork.image.src": (v15/*: any*/), - "artist.coverArtwork.image.width": (v23/*: any*/), - "artist.coverArtwork.title": (v15/*: any*/), - "artist.deathday": (v15/*: any*/), - "artist.formattedNationalityAndBirthday": (v15/*: any*/), - "artist.gender": (v15/*: any*/), - "artist.href": (v15/*: any*/), - "artist.id": (v16/*: any*/), - "artist.image": (v17/*: any*/), - "artist.image.large": (v15/*: any*/), - "artist.image.square": (v15/*: any*/), - "artist.image.versions": (v13/*: any*/), + "artist.counts.artworks": (v21/*: any*/), + "artist.counts.follows": (v21/*: any*/), + "artist.coverArtwork": (v13/*: any*/), + "artist.coverArtwork.href": (v14/*: any*/), + "artist.coverArtwork.id": (v15/*: any*/), + "artist.coverArtwork.image": (v16/*: any*/), + "artist.coverArtwork.image.height": (v22/*: any*/), + "artist.coverArtwork.image.large": (v14/*: any*/), + "artist.coverArtwork.image.src": (v14/*: any*/), + "artist.coverArtwork.image.width": (v22/*: any*/), + "artist.coverArtwork.title": (v14/*: any*/), + "artist.deathday": (v14/*: any*/), + "artist.formattedNationalityAndBirthday": (v14/*: any*/), + "artist.gender": (v14/*: any*/), + "artist.href": (v14/*: any*/), + "artist.id": (v15/*: any*/), "artist.insights": { "enumValues": null, "nullable": false, "plural": true, "type": "ArtistInsight" }, - "artist.insights.description": (v15/*: any*/), + "artist.insights.description": (v14/*: any*/), "artist.insights.entities": { "enumValues": null, "nullable": false, @@ -911,48 +876,48 @@ return { "plural": false, "type": "ArtistInsightKind" }, - "artist.insights.label": (v18/*: any*/), - "artist.internalID": (v16/*: any*/), + "artist.insights.label": (v17/*: any*/), + "artist.internalID": (v15/*: any*/), "artist.meta": { "enumValues": null, "nullable": false, "plural": false, "type": "ArtistMeta" }, - "artist.meta.description": (v18/*: any*/), - "artist.meta.title": (v18/*: any*/), - "artist.name": (v15/*: any*/), - "artist.nationality": (v15/*: any*/), - "artist.slug": (v16/*: any*/), + "artist.meta.description": (v17/*: any*/), + "artist.meta.title": (v17/*: any*/), + "artist.name": (v14/*: any*/), + "artist.nationality": (v14/*: any*/), + "artist.slug": (v15/*: any*/), "artist.verifiedRepresentatives": { "enumValues": null, "nullable": false, "plural": true, "type": "VerifiedRepresentative" }, - "artist.verifiedRepresentatives.id": (v16/*: any*/), + "artist.verifiedRepresentatives.id": (v15/*: any*/), "artist.verifiedRepresentatives.partner": { "enumValues": null, "nullable": false, "plural": false, "type": "Partner" }, - "artist.verifiedRepresentatives.partner.href": (v15/*: any*/), - "artist.verifiedRepresentatives.partner.id": (v16/*: any*/), - "artist.verifiedRepresentatives.partner.internalID": (v16/*: any*/), - "artist.verifiedRepresentatives.partner.name": (v15/*: any*/), - "artist.verifiedRepresentatives.partner.profile": (v21/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon": (v17/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src1x": (v24/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src1x.src": (v18/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src2x": (v24/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src2x.src": (v18/*: any*/), - "artist.verifiedRepresentatives.partner.profile.id": (v16/*: any*/) + "artist.verifiedRepresentatives.partner.href": (v14/*: any*/), + "artist.verifiedRepresentatives.partner.id": (v15/*: any*/), + "artist.verifiedRepresentatives.partner.internalID": (v15/*: any*/), + "artist.verifiedRepresentatives.partner.name": (v14/*: any*/), + "artist.verifiedRepresentatives.partner.profile": (v20/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon": (v16/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src1x": (v23/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src1x.src": (v17/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src2x": (v23/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src2x.src": (v17/*: any*/), + "artist.verifiedRepresentatives.partner.profile.id": (v15/*: any*/) } }, "name": "ArtistApp_Test_Query", "operationKind": "query", - "text": "query ArtistApp_Test_Query {\n artist(id: \"example\") {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML, partnerBio: false) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternate_names: alternateNames\n image {\n versions\n large: url(version: \"large\")\n square: url(version: \"square\")\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" + "text": "query ArtistApp_Test_Query {\n artist(id: \"example\") {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML, partnerBio: false) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistMeta_Test_Query.graphql.ts b/src/__generated__/ArtistMeta_Test_Query.graphql.ts index 8dff0fd1285..9ceae7ee310 100644 --- a/src/__generated__/ArtistMeta_Test_Query.graphql.ts +++ b/src/__generated__/ArtistMeta_Test_Query.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<56a897f1ce03181217e6c215070c3db3>> * @lightSyntaxTransform * @nogrep */ @@ -71,14 +71,21 @@ v5 = { "storageKey": "url(version:\"large\")" }, v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v7 = { "alias": null, "args": null, "kind": "ScalarField", "name": "major", "storageKey": null }, -v7 = [ - (v6/*: any*/), +v8 = [ + (v7/*: any*/), { "alias": null, "args": null, @@ -87,7 +94,7 @@ v7 = [ "storageKey": null } ], -v8 = { +v9 = { "alias": null, "args": null, "concreteType": "Image", @@ -112,18 +119,11 @@ v8 = { ], "storageKey": null }, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, v10 = { "enumValues": null, "nullable": true, - "plural": true, - "type": "String" + "plural": false, + "type": "Artwork" }, v11 = { "enumValues": null, @@ -259,7 +259,7 @@ return { "storageKey": "meta(page:\"ABOUT\")" }, { - "alias": "alternate_names", + "alias": null, "args": null, "kind": "ScalarField", "name": "alternateNames", @@ -268,32 +268,24 @@ return { { "alias": null, "args": null, - "concreteType": "Image", + "concreteType": "Artwork", "kind": "LinkedField", - "name": "image", + "name": "coverArtwork", "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "versions", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + (v5/*: any*/) + ], "storageKey": null }, - (v5/*: any*/), - { - "alias": "square", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": "square" - } - ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"square\")" - } + (v6/*: any*/) ], "storageKey": null }, @@ -410,7 +402,7 @@ return { "kind": "LinkedField", "name": "minPrice", "plural": false, - "selections": (v7/*: any*/), + "selections": (v8/*: any*/), "storageKey": null }, { @@ -421,7 +413,7 @@ return { "name": "maxPrice", "plural": false, "selections": [ - (v6/*: any*/) + (v7/*: any*/) ], "storageKey": null } @@ -431,7 +423,7 @@ return { }, { "kind": "InlineFragment", - "selections": (v7/*: any*/), + "selections": (v8/*: any*/), "type": "Money", "abstractKey": null } @@ -446,7 +438,7 @@ return { "storageKey": null }, (v2/*: any*/), - (v8/*: any*/), + (v9/*: any*/), { "alias": null, "args": null, @@ -465,16 +457,16 @@ return { "name": "profile", "plural": false, "selections": [ - (v8/*: any*/), - (v9/*: any*/) + (v9/*: any*/), + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": null } @@ -484,14 +476,14 @@ return { ], "storageKey": "artworksConnection(filter:\"IS_FOR_SALE\",first:10,published:true)" }, - (v9/*: any*/) + (v6/*: any*/) ], "storageKey": "artist(id:\"example\")" } ] }, "params": { - "cacheID": "eb72c630bfca9cfecf5893707eea7d4c", + "cacheID": "d30597a2d8348997161daeb281373838", "id": null, "metadata": { "relayTestingSelectionTypeInfo": { @@ -501,7 +493,12 @@ return { "plural": false, "type": "Artist" }, - "artist.alternate_names": (v10/*: any*/), + "artist.alternateNames": { + "enumValues": null, + "nullable": true, + "plural": true, + "type": "String" + }, "artist.artworks_connection": { "enumValues": null, "nullable": true, @@ -514,12 +511,7 @@ return { "plural": true, "type": "ArtworkEdge" }, - "artist.artworks_connection.edges.node": { - "enumValues": null, - "nullable": true, - "plural": false, - "type": "Artwork" - }, + "artist.artworks_connection.edges.node": (v10/*: any*/), "artist.artworks_connection.edges.node.availability": (v11/*: any*/), "artist.artworks_connection.edges.node.category": (v11/*: any*/), "artist.artworks_connection.edges.node.date": (v11/*: any*/), @@ -578,14 +570,14 @@ return { "plural": false, "type": "FormattedNumber" }, + "artist.coverArtwork": (v10/*: any*/), + "artist.coverArtwork.id": (v12/*: any*/), + "artist.coverArtwork.image": (v13/*: any*/), + "artist.coverArtwork.image.large": (v11/*: any*/), "artist.deathday": (v11/*: any*/), "artist.gender": (v11/*: any*/), "artist.href": (v11/*: any*/), "artist.id": (v12/*: any*/), - "artist.image": (v13/*: any*/), - "artist.image.large": (v11/*: any*/), - "artist.image.square": (v11/*: any*/), - "artist.image.versions": (v10/*: any*/), "artist.meta": { "enumValues": null, "nullable": false, @@ -601,7 +593,7 @@ return { }, "name": "ArtistMeta_Test_Query", "operationKind": "query", - "text": "query ArtistMeta_Test_Query {\n artist(id: \"example\") {\n ...ArtistMeta_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternate_names: alternateNames\n image {\n versions\n large: url(version: \"large\")\n square: url(version: \"square\")\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" + "text": "query ArtistMeta_Test_Query {\n artist(id: \"example\") {\n ...ArtistMeta_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistMeta_artist.graphql.ts b/src/__generated__/ArtistMeta_artist.graphql.ts index e2e41074121..11cbbe8e27d 100644 --- a/src/__generated__/ArtistMeta_artist.graphql.ts +++ b/src/__generated__/ArtistMeta_artist.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<0223d05ed2b70d937db40154ad113ffa>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -11,7 +11,7 @@ import { Fragment, ReaderFragment } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type ArtistMeta_artist$data = { - readonly alternate_names: ReadonlyArray | null | undefined; + readonly alternateNames: ReadonlyArray | null | undefined; readonly artworks_connection: { readonly edges: ReadonlyArray<{ readonly node: { @@ -62,14 +62,14 @@ export type ArtistMeta_artist$data = { readonly counts: { readonly artworks: any | null | undefined; } | null | undefined; + readonly coverArtwork: { + readonly image: { + readonly large: string | null | undefined; + } | null | undefined; + } | null | undefined; readonly deathday: string | null | undefined; readonly gender: string | null | undefined; readonly href: string | null | undefined; - readonly image: { - readonly large: string | null | undefined; - readonly square: string | null | undefined; - readonly versions: ReadonlyArray | null | undefined; - } | null | undefined; readonly meta: { readonly description: string; readonly title: string; @@ -231,7 +231,7 @@ return { "storageKey": "meta(page:\"ABOUT\")" }, { - "alias": "alternate_names", + "alias": null, "args": null, "kind": "ScalarField", "name": "alternateNames", @@ -240,31 +240,22 @@ return { { "alias": null, "args": null, - "concreteType": "Image", + "concreteType": "Artwork", "kind": "LinkedField", - "name": "image", + "name": "coverArtwork", "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "versions", - "storageKey": null - }, - (v4/*: any*/), - { - "alias": "square", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": "square" - } + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + (v4/*: any*/) ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"square\")" + "storageKey": null } ], "storageKey": null @@ -459,6 +450,6 @@ return { }; })(); -(node as any).hash = "d6640e0fe3cda5eff7e06b3e35a12723"; +(node as any).hash = "317d787474ecc45eac65f861049794ed"; export default node; diff --git a/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts b/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts index 141f3739c25..698d2b5b97a 100644 --- a/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts +++ b/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<3fc27f6aadcb8791633fe4c9263d9f24>> + * @generated SignedSource<<568aefca80502174bcb0b744d87bd563>> * @lightSyntaxTransform * @nogrep */ @@ -80,14 +80,21 @@ v6 = { "storageKey": "url(version:\"large\")" }, v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v8 = { "alias": null, "args": null, "kind": "ScalarField", "name": "major", "storageKey": null }, -v8 = [ - (v7/*: any*/), +v9 = [ + (v8/*: any*/), { "alias": null, "args": null, @@ -96,7 +103,7 @@ v8 = [ "storageKey": null } ], -v9 = { +v10 = { "alias": null, "args": null, "concreteType": "Image", @@ -121,13 +128,6 @@ v9 = { ], "storageKey": null }, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, v11 = { "alias": null, "args": null, @@ -247,7 +247,7 @@ return { "storageKey": "meta(page:\"ABOUT\")" }, { - "alias": "alternate_names", + "alias": null, "args": null, "kind": "ScalarField", "name": "alternateNames", @@ -256,32 +256,56 @@ return { { "alias": null, "args": null, - "concreteType": "Image", + "concreteType": "Artwork", "kind": "LinkedField", - "name": "image", + "name": "coverArtwork", "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "versions", - "storageKey": null - }, - (v6/*: any*/), - { - "alias": "square", - "args": [ + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + (v6/*: any*/), { - "kind": "Literal", - "name": "version", - "value": "square" + "alias": "src", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": [ + "larger", + "larger" + ] + } + ], + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:[\"larger\",\"larger\"])" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "width", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "height", + "storageKey": null } ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"square\")" - } + "storageKey": null + }, + (v7/*: any*/), + (v5/*: any*/), + (v3/*: any*/) ], "storageKey": null }, @@ -405,7 +429,7 @@ return { "kind": "LinkedField", "name": "minPrice", "plural": false, - "selections": (v8/*: any*/), + "selections": (v9/*: any*/), "storageKey": null }, { @@ -416,7 +440,7 @@ return { "name": "maxPrice", "plural": false, "selections": [ - (v7/*: any*/) + (v8/*: any*/) ], "storageKey": null } @@ -426,7 +450,7 @@ return { }, { "kind": "InlineFragment", - "selections": (v8/*: any*/), + "selections": (v9/*: any*/), "type": "Money", "abstractKey": null } @@ -441,7 +465,7 @@ return { "storageKey": null }, (v3/*: any*/), - (v9/*: any*/), + (v10/*: any*/), { "alias": null, "args": null, @@ -460,16 +484,16 @@ return { "name": "profile", "plural": false, "selections": [ - (v9/*: any*/), - (v10/*: any*/) + (v10/*: any*/), + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null } @@ -640,86 +664,31 @@ return { ], "storageKey": null }, - (v10/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Artwork", - "kind": "LinkedField", - "name": "coverArtwork", - "plural": false, - "selections": [ - (v5/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Image", - "kind": "LinkedField", - "name": "image", - "plural": false, - "selections": [ - { - "alias": "src", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": [ - "larger", - "larger" - ] - } + (v7/*: any*/) ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:[\"larger\",\"larger\"])" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "width", "storageKey": null }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "height", - "storageKey": null - } + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "d0ff16a9d06177f382a81e4b6bb1f207", + "cacheID": "a8a8e66e2fac0576044d6ee5f2bf5062", "id": null, "metadata": {}, "name": "artistRoutes_ArtistAppQuery", "operationKind": "query", - "text": "query artistRoutes_ArtistAppQuery(\n $artistID: String!\n) {\n artist(id: $artistID) @principalField {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML, partnerBio: false) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternate_names: alternateNames\n image {\n versions\n large: url(version: \"large\")\n square: url(version: \"square\")\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" + "text": "query artistRoutes_ArtistAppQuery(\n $artistID: String!\n) {\n artist(id: $artistID) @principalField {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML, partnerBio: false) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n" } }; })(); diff --git a/src/__generated__/artistRoutes_ArtistSubAppQuery.graphql.ts b/src/__generated__/artistRoutes_ArtistSubAppQuery.graphql.ts index 82cc9a15832..b02262575c3 100644 --- a/src/__generated__/artistRoutes_ArtistSubAppQuery.graphql.ts +++ b/src/__generated__/artistRoutes_ArtistSubAppQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5b2959570a213cd5a083586278bd894d>> + * @generated SignedSource<<85ef4c301ff790ac99348ab1e24970e5>> * @lightSyntaxTransform * @nogrep */ @@ -80,14 +80,21 @@ v6 = { "storageKey": "url(version:\"large\")" }, v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v8 = { "alias": null, "args": null, "kind": "ScalarField", "name": "major", "storageKey": null }, -v8 = [ - (v7/*: any*/), +v9 = [ + (v8/*: any*/), { "alias": null, "args": null, @@ -96,7 +103,7 @@ v8 = [ "storageKey": null } ], -v9 = { +v10 = { "alias": null, "args": null, "concreteType": "Image", @@ -120,13 +127,6 @@ v9 = { (v6/*: any*/) ], "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null }; return { "fragment": { @@ -226,7 +226,7 @@ return { "storageKey": "meta(page:\"ABOUT\")" }, { - "alias": "alternate_names", + "alias": null, "args": null, "kind": "ScalarField", "name": "alternateNames", @@ -235,32 +235,24 @@ return { { "alias": null, "args": null, - "concreteType": "Image", + "concreteType": "Artwork", "kind": "LinkedField", - "name": "image", + "name": "coverArtwork", "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "versions", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + (v6/*: any*/) + ], "storageKey": null }, - (v6/*: any*/), - { - "alias": "square", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": "square" - } - ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"square\")" - } + (v7/*: any*/) ], "storageKey": null }, @@ -377,7 +369,7 @@ return { "kind": "LinkedField", "name": "minPrice", "plural": false, - "selections": (v8/*: any*/), + "selections": (v9/*: any*/), "storageKey": null }, { @@ -388,7 +380,7 @@ return { "name": "maxPrice", "plural": false, "selections": [ - (v7/*: any*/) + (v8/*: any*/) ], "storageKey": null } @@ -398,7 +390,7 @@ return { }, { "kind": "InlineFragment", - "selections": (v8/*: any*/), + "selections": (v9/*: any*/), "type": "Money", "abstractKey": null } @@ -413,7 +405,7 @@ return { "storageKey": null }, (v3/*: any*/), - (v9/*: any*/), + (v10/*: any*/), { "alias": null, "args": null, @@ -432,16 +424,16 @@ return { "name": "profile", "plural": false, "selections": [ - (v9/*: any*/), - (v10/*: any*/) + (v10/*: any*/), + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null } @@ -458,19 +450,19 @@ return { "name": "internalID", "storageKey": null }, - (v10/*: any*/) + (v7/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "96c960947ab102f303c9a8f125446338", + "cacheID": "6f40130e44cf7465a7493cfe7a56c302", "id": null, "metadata": {}, "name": "artistRoutes_ArtistSubAppQuery", "operationKind": "query", - "text": "query artistRoutes_ArtistSubAppQuery(\n $artistID: String!\n) {\n artist(id: $artistID) {\n ...ArtistSubApp_artist\n id\n }\n}\n\nfragment ArtistBackLink_artist on Artist {\n name\n href\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternate_names: alternateNames\n image {\n versions\n large: url(version: \"large\")\n square: url(version: \"square\")\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n\nfragment ArtistSubApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistBackLink_artist\n internalID\n name\n}\n" + "text": "query artistRoutes_ArtistSubAppQuery(\n $artistID: String!\n) {\n artist(id: $artistID) {\n ...ArtistSubApp_artist\n id\n }\n}\n\nfragment ArtistBackLink_artist on Artist {\n name\n href\n}\n\nfragment ArtistMeta_artist on Artist {\n slug\n name\n nationality\n birthday\n deathday\n gender\n href\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n counts {\n artworks\n }\n blurb\n artworks_connection: artworksConnection(first: 10, filter: IS_FOR_SALE, published: true) {\n edges {\n node {\n title\n date\n description\n category\n price_currency: priceCurrency\n listPrice {\n __typename\n ... on PriceRange {\n minPrice {\n major\n currencyCode\n }\n maxPrice {\n major\n }\n }\n ... on Money {\n major\n currencyCode\n }\n }\n availability\n href\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n partner {\n name\n href\n profile {\n image {\n small: url(version: \"small\")\n large: url(version: \"large\")\n }\n id\n }\n id\n }\n id\n }\n }\n }\n}\n\nfragment ArtistSubApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistBackLink_artist\n internalID\n name\n}\n" } }; })();