forked from artsy/kaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_schema.graphql
153 lines (129 loc) · 4.27 KB
/
_schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Object representing a collection page
type Collection {
id: ID!
internalID: ID!
# slug version of title, used for pretty URLs (e.g. `kaws-prints` for Kaws Prints
slug: String!
# Name of the collection
title: String!
# Description of the collection which can include links to other collections
description: String
# Markdown alternate of description field contents.
descriptionMarkdown: String
# Background image for the header of the collection page
headerImage: String
# URL for Thumbnail image to be used when this collection is displayed.
thumbnail: String
# Set of keywords used for SEO purposes
keywords: String!
# Image credit for the header image
credit: String
# Category of the collection
category: String!
# Structured object used to build filtered artworks query
query: CollectionQuery!
createdAt: DateTime!
updatedAt: DateTime!
# Suggested average price for included works
price_guidance: Float @deprecated(reason: "Prefer priceGuidance")
# Suggested average price for included works
priceGuidance: Float
# Collection can be surfaced on editorial pages
show_on_editorial: Boolean! @deprecated(reason: "Prefer showOnEditorial")
# Collection can be surfaced on editorial pages
showOnEditorial: Boolean!
# Collection has prioritized connection to artist
is_featured_artist_content: Boolean!
@deprecated(reason: "Prefer isFeaturedArtistContent")
# Collection has prioritized connection to artist
isFeaturedArtistContent: Boolean!
# CollectionGroups of this collection
linkedCollections: [CollectionGroup!]!
# IDs of artists that should be excluded from Featured Artists for this collection
featuredArtistExclusionIds: [String!]
relatedCollections: [Collection!]!
}
type CollectionCategory {
name: String!
collections: [Collection!]!
}
type CollectionGroup {
internalID: ID
groupType: GroupTypes!
name: String!
members: [Collection!]!
}
type CollectionQuery {
id: ID
internalID: ID
acquireable: Boolean
aggregations: [String!]
artist_ids: [String!] @deprecated(reason: "Prefer artistIDs")
artistIDs: [String!]
artist_id: String @deprecated(reason: "Prefer artistID")
artistID: String
at_auction: Boolean @deprecated(reason: "Prefer atAuction")
atAuction: Boolean
color: String
dimension_range: String @deprecated(reason: "Prefer dimensionRange")
dimensionRange: String
extra_aggregation_gene_ids: [String!]
@deprecated(reason: "prefer extraAggregationGeneIDs")
extraAggregationGeneIDs: [String!]
include_artworks_by_followed_artists: Boolean
@deprecated(reason: "Prefer includeArtworksByFollowedArtists")
includeArtworksByFollowedArtists: Boolean
include_medium_filter_in_aggregation: Boolean
@deprecated(reason: "Prefer includeMediumFilterInAggregation")
includeMediumFilterInAggregation: Boolean
inquireable_only: Boolean @deprecated(reason: "Prefer inquireableOnly")
inquireableOnly: Boolean
for_sale: Boolean @deprecated(reason: "Prefer forSale")
forSale: Boolean
gene_id: String @deprecated(reason: "Prefer geneID")
geneID: String
gene_ids: [String!] @deprecated(reason: "Prefer geneIDs")
geneIDs: [String!]
height: String
width: String
medium: String
period: String
periods: [String!]
major_periods: [String!] @deprecated(reason: "Prefer majorPeriods")
majorPeriods: [String!]
partner_id: ID @deprecated(reason: "Prefer partnerID")
partnerID: ID
partner_cities: [String!] @deprecated(reason: "Prefer partnerCities")
partnerCities: [String!]
price_range: String @deprecated(reason: "Prefer priceRange")
priceRange: String
page: Int
sale_id: ID @deprecated(reason: "Prefer saleID")
saleID: ID
size: Int
sort: String
tag_id: String @deprecated(reason: "Prefer tagID")
tagID: String
keyword: String
}
# The javascript `Date` as string. Type represents date and time as the ISO Date string.
scalar DateTime
# Available types of CollectionGroup
enum GroupTypes {
ArtistSeries
FeaturedCollections
OtherCollections
}
type Query {
collections(
category: String
randomizationSeed: String
size: Int
isFeaturedArtistContent: Boolean
showOnEditorial: Boolean
artistID: String
): [Collection!]!
categories: [CollectionCategory!]!
collection(slug: String!): Collection
hubCollections: [Collection!]!
}