Created
July 4, 2016 19:43
-
-
Save alloy/6dcf4e26303de0eb922a264b6b1d50d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/data/schema.graphql b/data/schema.graphql | |
index d25153c..251a921 100644 | |
--- a/data/schema.graphql | |
+++ b/data/schema.graphql | |
@@ -1,13 +1,14 @@ | |
type AggregationCount { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
name: String | |
count: Int | |
} | |
type Article implements Node { | |
- cached: Int | |
__id: ID! | |
- id: String | |
+ id: ID! | |
+ cached: Int | |
title: String | |
published_at(format: String): String | |
updated_at(format: String): String | |
@@ -25,10 +26,10 @@ enum ArticleSorts { | |
} | |
type Artist implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
sortable_id: String | |
name: String | |
@@ -92,10 +93,10 @@ type ArtistCounts { | |
} | |
type ArtistItem implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
sortable_id: String | |
name: String | |
@@ -141,10 +142,10 @@ type ArtistMeta { | |
} | |
type ArtistSearchEntity implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
sortable_id: String | |
name: String | |
@@ -202,10 +203,10 @@ type ArtistStatuses { | |
} | |
type Artwork implements Node { | |
- cached: Int | |
__id: ID! | |
- id: String | |
- _id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
to_s: String | |
href: String | |
title: String | |
@@ -263,7 +264,7 @@ type Artwork implements Node { | |
manufacturer(format: Format): String | |
series(format: Format): String | |
meta: ArtworkMeta | |
- layer(id: String): ArtworkLayer | |
+ layer(id: ID): ArtworkLayer | |
layers: [ArtworkLayer] | |
} | |
@@ -283,9 +284,10 @@ enum ArtworkAggregation { | |
union ArtworkContext = ArtworkContextAuction | ArtworkContextSale | ArtworkContextFair | ArtworkContextPartnerShow | |
type ArtworkContextAuction { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
- _id: String | |
name: String | |
href: String | |
description: String | |
@@ -307,16 +309,17 @@ type ArtworkContextAuction { | |
sale_artworks(page: Int = 1, size: Int = 25, all: Boolean = false): [SaleArtwork] | |
artworks(page: Int = 1, size: Int = 25, all: Boolean = false, exclude: [String]): [Artwork] | |
cover_image: Image | |
- sale_artwork(id: String!): SaleArtwork | |
+ sale_artwork(id: ID!): SaleArtwork | |
profile: Profile | |
bid_increments: [BidIncrements] | |
buyers_premium: [BuyersPremium] | |
} | |
type ArtworkContextFair { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
banner_size: String | |
profile: Profile | |
has_full_feature: Boolean | |
@@ -333,10 +336,10 @@ type ArtworkContextFair { | |
} | |
type ArtworkContextPartnerShow implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
kind: String | |
name: String | |
@@ -365,9 +368,10 @@ type ArtworkContextPartnerShow implements Node { | |
} | |
type ArtworkContextSale { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
- _id: String | |
name: String | |
href: String | |
description: String | |
@@ -389,14 +393,15 @@ type ArtworkContextSale { | |
sale_artworks(page: Int = 1, size: Int = 25, all: Boolean = false): [SaleArtwork] | |
artworks(page: Int = 1, size: Int = 25, all: Boolean = false, exclude: [String]): [Artwork] | |
cover_image: Image | |
- sale_artwork(id: String!): SaleArtwork | |
+ sale_artwork(id: ID!): SaleArtwork | |
profile: Profile | |
bid_increments: [BidIncrements] | |
buyers_premium: [BuyersPremium] | |
} | |
type ArtworkLayer { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
type: String | |
name: String | |
href: String | |
@@ -416,10 +421,10 @@ type ArtworksAggregationResults { | |
} | |
type ArtworkSearchEntity implements Node { | |
- cached: Int | |
__id: ID! | |
- id: String | |
- _id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
to_s: String | |
href: String | |
title: String | |
@@ -477,7 +482,7 @@ type ArtworkSearchEntity implements Node { | |
manufacturer(format: Format): String | |
series(format: Format): String | |
meta: ArtworkMeta | |
- layer(id: String): ArtworkLayer | |
+ layer(id: ID): ArtworkLayer | |
layers: [ArtworkLayer] | |
} | |
@@ -497,14 +502,16 @@ enum ArtworkSorts { | |
} | |
type Author { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
name: String | |
profile_handle: String | |
href: String | |
} | |
type Bidder { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
created_at(format: String): String | |
pin: String | |
sale: Sale | |
@@ -512,7 +519,8 @@ type Bidder { | |
} | |
type BidderPosition { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
created_at(format: String): String | |
updated_at(format: String): String | |
processed_at(format: String): String | |
@@ -606,7 +614,8 @@ type dimensions { | |
} | |
type EditionSet { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
dimensions: dimensions | |
edition_of: String | |
is_acquireable: Boolean | |
@@ -623,9 +632,10 @@ enum EventStatus { | |
} | |
type Fair { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
banner_size: String | |
profile: Profile | |
has_full_feature: Boolean | |
@@ -689,8 +699,10 @@ enum Format { | |
scalar FormattedNumber | |
type Gene { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
href: String | |
name: String | |
image: Image | |
@@ -699,8 +711,10 @@ type Gene { | |
} | |
type GeneItem { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
href: String | |
name: String | |
image: Image | |
@@ -709,7 +723,8 @@ type GeneItem { | |
} | |
type HighestBid { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
created_at(format: String): String | |
number: Int | |
is_cancelled: Boolean | |
@@ -723,9 +738,9 @@ type HighestBid { | |
union Highlighted = HighlightedShow | HighlightedArticle | |
type HighlightedArticle implements Node { | |
- cached: Int | |
__id: ID! | |
- id: String | |
+ id: ID! | |
+ cached: Int | |
title: String | |
published_at(format: String): String | |
updated_at(format: String): String | |
@@ -738,10 +753,10 @@ type HighlightedArticle implements Node { | |
} | |
type HighlightedShow implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
kind: String | |
name: String | |
@@ -772,9 +787,10 @@ type HighlightedShow implements Node { | |
union HomePageModuleContext = HomePageModuleContextFair | HomePageModuleContextSale | HomePageModuleContextGene | HomePageModuleContextTrending | HomePageModuleContextFollowArtists | HomePageModuleContextRelatedArtist | |
type HomePageModuleContextFair { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
banner_size: String | |
profile: Profile | |
has_full_feature: Boolean | |
@@ -796,8 +812,10 @@ type HomePageModuleContextFollowArtists { | |
} | |
type HomePageModuleContextGene { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
href: String | |
name: String | |
image: Image | |
@@ -811,9 +829,10 @@ type HomePageModuleContextRelatedArtist { | |
} | |
type HomePageModuleContextSale { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
- _id: String | |
name: String | |
href: String | |
description: String | |
@@ -835,7 +854,7 @@ type HomePageModuleContextSale { | |
sale_artworks(page: Int = 1, size: Int = 25, all: Boolean = false): [SaleArtwork] | |
artworks(page: Int = 1, size: Int = 25, all: Boolean = false, exclude: [String]): [Artwork] | |
cover_image: Image | |
- sale_artwork(id: String!): SaleArtwork | |
+ sale_artwork(id: ID!): SaleArtwork | |
profile: Profile | |
bid_increments: [BidIncrements] | |
buyers_premium: [BuyersPremium] | |
@@ -859,11 +878,12 @@ type HomePageModulesParams { | |
gene_id: String | |
medium: String | |
price_range: String | |
- id: String | |
+ id: ID | |
} | |
type Image { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
href: String | |
title: String | |
width: Int | |
@@ -885,8 +905,9 @@ type Image { | |
union Item = ArtistItem | FeaturedLinkItem | GeneItem | |
type Location { | |
+ __id: ID! | |
+ id: ID! | |
cached: Int | |
- id: String | |
city: String | |
country: String | |
coordinates: coordinates | |
@@ -900,7 +921,8 @@ type Location { | |
} | |
type Me { | |
- id: String | |
+ __id: ID! | |
+ id: ID! | |
type: String | |
created_at(format: String): String | |
email: String | |
@@ -924,8 +946,9 @@ interface Node { | |
} | |
type OrderedSet { | |
+ __id: ID! | |
+ id: ID! | |
cached: Int | |
- id: String | |
key: String | |
name: String | |
description: String | |
@@ -934,13 +957,14 @@ type OrderedSet { | |
} | |
type organizer { | |
- profile_id: String | |
+ profile_id: ID | |
} | |
-type Partner { | |
+type Partner implements Node { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
name: String | |
collecting_institution: String | |
is_default_profile_public: Boolean | |
@@ -958,8 +982,9 @@ type Partner { | |
} | |
type PartnerArtist { | |
+ __id: ID! | |
+ id: ID! | |
counts: PartnerArtistCounts | |
- id: String | |
is_display_on_partner_profile: Boolean | |
is_represented_by: Boolean | |
sortable_id: String | |
@@ -975,8 +1000,9 @@ type PartnerArtistCounts { | |
} | |
type PartnerCategory { | |
+ __id: ID! | |
+ id: ID! | |
cached: Int | |
- id: String | |
name: String | |
category_type: CategoryType | |
partners(size: Int, page: Int, near: String, eligible_for_primary_bucket: Boolean, eligible_for_secondary_bucket: Boolean, eligible_for_listing: Boolean, eligible_for_carousel: Boolean, has_full_profile: Boolean, default_profile_public: Boolean, sort: PartnersSortType, partner_categories: [String], type: [PartnerClassification], term: String): [Partner] | |
@@ -1005,10 +1031,10 @@ type PartnersAggregationResults { | |
} | |
type PartnerShow implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
kind: String | |
name: String | |
@@ -1049,10 +1075,10 @@ type PartnerShowEventType { | |
} | |
type PartnerShowSearchEntity implements Node { | |
- cached: Int | |
__id: ID! | |
- _id: String | |
- id: String | |
+ id: ID! | |
+ _id: ID! | |
+ cached: Int | |
href: String | |
kind: String | |
name: String | |
@@ -1105,9 +1131,10 @@ enum PartnersSortType { | |
} | |
type Profile { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
name: String | |
image: Image | |
initials(length: Int = 3): String | |
@@ -1123,9 +1150,10 @@ type ProfileCounts { | |
} | |
type ProfileSearchEntity { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
name: String | |
image: Image | |
initials(length: Int = 3): String | |
@@ -1151,30 +1179,30 @@ enum Role { | |
type RootQueryType { | |
node(__id: ID!): Node | |
status: Status | |
- article(id: String!): Article | |
+ article(id: ID!): Article | |
articles(show_id: String, sort: ArticleSorts, published: Boolean = true): [Article] | |
- artwork(id: String!): Artwork | |
+ artwork(id: ID!): Artwork | |
artworks(ids: [String]): [Artwork] | |
- artist(id: String!): Artist | |
+ artist(id: ID!): Artist | |
artists(size: Int, sort: ArtistSorts): [Artist] | |
- fair(id: String!): Fair | |
+ fair(id: ID!): Fair | |
fairs(size: Int, page: Int, sort: FairSorts, status: EventStatus, fair_organizer_id: String, near: Near, has_full_feature: Boolean): [Fair] | |
- gene(id: String!): Gene | |
+ gene(id: ID!): Gene | |
home_page_modules(max_rails: Int = 8): [HomePageModules] | |
- home_page_module(key: String, id: String): HomePageModules | |
- profile(id: String!): Profile | |
+ home_page_module(key: String, id: ID): HomePageModules | |
+ profile(id: ID!): Profile | |
ordered_sets(key: String!, public: Boolean = true): [OrderedSet] | |
- partner(id: String!): Partner | |
+ partner(id: ID!): Partner | |
partners(size: Int, page: Int, near: String, eligible_for_primary_bucket: Boolean, eligible_for_secondary_bucket: Boolean, eligible_for_listing: Boolean, eligible_for_carousel: Boolean, has_full_profile: Boolean, default_profile_public: Boolean, sort: PartnersSortType, partner_categories: [String], type: [PartnerClassification], term: String): [Partner] | |
filter_partners(size: Int, page: Int, near: String, eligible_for_primary_bucket: Boolean, eligible_for_secondary_bucket: Boolean, eligible_for_listing: Boolean, eligible_for_carousel: Boolean, has_full_profile: Boolean, default_profile_public: Boolean, sort: PartnersSortType, partner_categories: [String], type: [PartnerClassification], term: String, aggregations: [PartnersAggregation]!): FilterPartners | |
filter_artworks(aggregation_partner_cities: [String], aggregations: [ArtworkAggregation], artist_id: Int, color: String, dimension_range: String, extra_aggregation_gene_ids: [String], for_sale: Boolean, gene_id: String, gene_ids: [String], height: String, width: String, medium: String, period: String, periods: [String], major_periods: [String], partner_cities: [String], price_range: String, page: Int, size: Int, sort: String): FilterArtworks | |
- partner_category(id: String!): PartnerCategory | |
+ partner_category(id: ID!): PartnerCategory | |
partner_categories(size: Int, category_type: CategoryType, internal: Boolean = false): [PartnerCategory] | |
- partner_show(id: String!): PartnerShow | |
+ partner_show(id: ID!): PartnerShow | |
partner_shows(size: Int, sort: PartnerShowSorts, status: EventStatus, fair_id: String, partner_id: String, near: Near, displayable: Boolean = true, featured: Boolean, at_a_fair: Boolean): [PartnerShow] | |
- sale(id: String!): Sale | |
+ sale(id: ID!): Sale | |
sales(size: Int, is_auction: Boolean = true, published: Boolean = true, live: Boolean = true, sort: SaleSorts): [Sale] | |
- sale_artwork(id: String!): SaleArtwork | |
+ sale_artwork(id: ID!): SaleArtwork | |
search(term: String!): Search | |
trending_artists(method: String = "fetch", name: TrendingMetrics!, size: Int = 40, double_time_period: Boolean = false): TrendingArtists | |
me: Me | |
@@ -1182,9 +1210,10 @@ type RootQueryType { | |
} | |
type Sale { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- id: String | |
- _id: String | |
name: String | |
href: String | |
description: String | |
@@ -1206,16 +1235,17 @@ type Sale { | |
sale_artworks(page: Int = 1, size: Int = 25, all: Boolean = false): [SaleArtwork] | |
artworks(page: Int = 1, size: Int = 25, all: Boolean = false, exclude: [String]): [Artwork] | |
cover_image: Image | |
- sale_artwork(id: String!): SaleArtwork | |
+ sale_artwork(id: ID!): SaleArtwork | |
profile: Profile | |
bid_increments: [BidIncrements] | |
buyers_premium: [BuyersPremium] | |
} | |
type SaleArtwork { | |
+ __id: ID! | |
+ id: ID! | |
+ _id: ID! | |
cached: Int | |
- _id: String | |
- id: String | |
sale_id: String | |
sale: Sale | |
position: Int | |
@@ -1256,7 +1286,7 @@ type SaleArtworkCurrentBid { | |
} | |
type SaleArtworkHighestBid { | |
- id: String | |
+ id: ID | |
created_at(format: String): String | |
is_cancelled: Boolean | |
amount(symbol: String, thousand: String = ",", decimal: String = ".", format: String = "%s%v", precision: Int = 0): String | |
@@ -1325,7 +1355,7 @@ type Search { | |
union SearchEntity = ArtistSearchEntity | ArtworkSearchEntity | ProfileSearchEntity | PartnerShowSearchEntity | |
type SearchResult { | |
- id: String | |
+ id: ID | |
title: String | |
href: String | |
snippet: String |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment