Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gene page refactor! #413

Merged
merged 13 commits into from
Dec 14, 2017
109 changes: 104 additions & 5 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ type ArtworkEdge {

union ArtworkFilterFacet = ArtworkFilterTag | ArtworkFilterGene

type ArtworkFilterGene {
type ArtworkFilterGene implements Node {
# A globally unique ID.
__id: ID!

Expand All @@ -1043,9 +1043,41 @@ type ArtworkFilterGene {
href: String
image: Image
count: Int

# Artworks Elastic Search results
filtered_artworks(
aggregation_partner_cities: [String]
aggregations: [ArtworkAggregation]
artist_id: String
artist_ids: [String]
color: String
dimension_range: String
extra_aggregation_gene_ids: [String]
include_artworks_by_followed_artists: Boolean
for_sale: Boolean
gene_id: String
gene_ids: [String]
height: String
width: String

# A string from the list of allocations, or * to denote all mediums
medium: String
period: String
periods: [String]
major_periods: [String]
partner_id: ID
partner_cities: [String]
price_range: String
page: Int
sale_id: ID
size: Int
sort: String
tag_id: String
keyword: String
): FilterArtworks
}

type ArtworkFilterTag {
type ArtworkFilterTag implements Node {
# A globally unique ID.
__id: ID!

Expand All @@ -1060,6 +1092,38 @@ type ArtworkFilterTag {
href: String
image: Image
count: Int

# Artworks Elastic Search results
filtered_artworks(
aggregation_partner_cities: [String]
aggregations: [ArtworkAggregation]
artist_id: String
artist_ids: [String]
color: String
dimension_range: String
extra_aggregation_gene_ids: [String]
include_artworks_by_followed_artists: Boolean
for_sale: Boolean
gene_id: String
gene_ids: [String]
height: String
width: String

# A string from the list of allocations, or * to denote all mediums
medium: String
period: String
periods: [String]
major_periods: [String]
partner_id: ID
partner_cities: [String]
price_range: String
page: Int
sale_id: ID
size: Int
sort: String
tag_id: String
keyword: String
): FilterArtworks
}

type ArtworkInquiry {
Expand Down Expand Up @@ -2247,10 +2311,13 @@ type FeaturedLinkItem {
title: String
}

type FilterArtworks {
type FilterArtworks implements Node {
# The ID of the object.
__id: ID!

# Returns aggregation counts for the given filter query.
aggregations: [ArtworksAggregationResults]
artworks_connection(after: String, first: Int, before: String, last: Int): ArtworkConnection @deprecated(reason: "Favour artwork connections that take filter arguments.")
artworks_connection(sort: String, after: String, first: Int, before: String, last: Int): ArtworkConnection @deprecated(reason: "Favour artwork connections that take filter arguments.")
counts: FilterArtworksCounts
followed_artists_total: Int @deprecated(reason: "Favor `favor counts.followed_artists`")

Expand Down Expand Up @@ -5240,7 +5307,7 @@ enum SubmissionStateAggregation {
REJECTED
}

type Tag {
type Tag implements Node {
# A globally unique ID.
__id: ID!

Expand All @@ -5255,6 +5322,38 @@ type Tag {
href: String
image: Image
count: Int

# Artworks Elastic Search results
filtered_artworks(
aggregation_partner_cities: [String]
aggregations: [ArtworkAggregation]
artist_id: String
artist_ids: [String]
color: String
dimension_range: String
extra_aggregation_gene_ids: [String]
include_artworks_by_followed_artists: Boolean
for_sale: Boolean
gene_id: String
gene_ids: [String]
height: String
width: String

# A string from the list of allocations, or * to denote all mediums
medium: String
period: String
periods: [String]
major_periods: [String]
partner_id: ID
partner_cities: [String]
price_range: String
page: Int
sale_id: ID
size: Int
sort: String
tag_id: String
keyword: String
): FilterArtworks
}

type TrendingArtists {
Expand Down
Loading