diff --git a/_schemaV2.graphql b/_schemaV2.graphql index 3053d8c829..7076f00f5d 100644 --- a/_schemaV2.graphql +++ b/_schemaV2.graphql @@ -16336,13 +16336,13 @@ type SaleArtworksAggregationResults { } # A connection to a list of items. -type SaleArtworksConnection { +type SaleArtworksConnection implements ArtworkConnectionInterface { # Returns aggregation counts for the given filter query. aggregations: [SaleArtworksAggregationResults] counts: FilterSaleArtworksCounts # A list of edges. - edges: [SaleArtworksEdge] + edges: [SaleArtwork] pageCursors: PageCursors! # Information to aid in pagination. @@ -16350,15 +16350,6 @@ type SaleArtworksConnection { totalCount: Int } -# An edge in a connection. -type SaleArtworksEdge { - # A cursor for use in pagination - cursor: String! - - # The item at the end of the edge - node: Artwork -} - type SaleCascadingEndTime { # A more granular formatted description of when the auction starts or ends if it has ended formattedStartDateTime: String diff --git a/src/schema/v2/sale_artworks.ts b/src/schema/v2/sale_artworks.ts index 9a3776630f..d5e2277611 100644 --- a/src/schema/v2/sale_artworks.ts +++ b/src/schema/v2/sale_artworks.ts @@ -18,8 +18,9 @@ import { SaleArtworksAggregation, SaleArtworksAggregationResultsType, } from "./aggregations/filter_sale_artworks_aggregation" -import { ArtworkType } from "./artwork" +import { ArtworkConnectionInterface, ArtworkType } from "./artwork" import numeral from "./fields/numeral" +import { SaleArtworkType } from "./sale_artwork" const DEFAULTS = { aggregations: ["total"], @@ -57,10 +58,12 @@ const SaleArtworkCounts = { export const SaleArtworksConnectionType = connectionWithCursorInfo({ name: "SaleArtworks", nodeType: ArtworkType, + edgeType: SaleArtworkType, connectionFields: { aggregations: SaleArtworkAggregations, counts: SaleArtworkCounts, }, + connectionInterfaces: [ArtworkConnectionInterface], }).connectionType export const SaleArtworksConnectionField: GraphQLFieldConfig<