Skip to content

Commit

Permalink
fix: wrongly updated sale artwork edge type
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Dec 1, 2023
1 parent 3b81699 commit 7c489de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
13 changes: 2 additions & 11 deletions _schemaV2.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16336,29 +16336,20 @@ 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.
pageInfo: PageInfo!
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
Expand Down
5 changes: 4 additions & 1 deletion src/schema/v2/sale_artworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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<
Expand Down

0 comments on commit 7c489de

Please sign in to comment.