-
Notifications
You must be signed in to change notification settings - Fork 1
/
schemma.graphql
261 lines (224 loc) · 7.07 KB
/
schemma.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
"""
Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive.
"""
directive @entity on OBJECT
"""Defined a Subgraph ID for an object type"""
directive @subgraphId(id: String!) on OBJECT
"""
creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API.
"""
directive @derivedFrom(field: String!) on FIELD_DEFINITION
"""
Direct the client to resolve this field locally, either from the cache or local resolvers.
"""
directive @client(
"""
When true, the client will never use the cache for this value. See
https://www.apollographql.com/docs/react/essentials/local-state/#forcing-resolvers-with-clientalways-true
"""
always: Boolean
) on FIELD | FRAGMENT_DEFINITION | INLINE_FRAGMENT
"""
Export this locally resolved field as a variable to be used in the remainder of this query. See
https://www.apollographql.com/docs/react/essentials/local-state/#using-client-fields-as-variables
"""
directive @export(
"""The variable name to export this field as."""
as: String!
) on FIELD
"""
Specify a custom store key for this result. See
https://www.apollographql.com/docs/react/advanced/caching/#the-connection-directive
"""
directive @connection(
"""Specify the store key."""
key: String!
"""
An array of query argument names to include in the generated custom store key.
"""
filter: [String!]
) on FIELD
scalar BigDecimal
scalar BigInt
input BlockChangedFilter {
number_gte: Int!
}
input Block_height {
hash: Bytes
number: Int
number_gte: Int
}
scalar Bytes
"""8 bytes signed integer"""
scalar Int8
type NFT {
id: ID!
from: Bytes!
to: Bytes!
tokenURI: String!
price: BigInt!
}
input NFT_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
from: Bytes
from_not: Bytes
from_gt: Bytes
from_lt: Bytes
from_gte: Bytes
from_lte: Bytes
from_in: [Bytes!]
from_not_in: [Bytes!]
from_contains: Bytes
from_not_contains: Bytes
to: Bytes
to_not: Bytes
to_gt: Bytes
to_lt: Bytes
to_gte: Bytes
to_lte: Bytes
to_in: [Bytes!]
to_not_in: [Bytes!]
to_contains: Bytes
to_not_contains: Bytes
tokenURI: String
tokenURI_not: String
tokenURI_gt: String
tokenURI_lt: String
tokenURI_gte: String
tokenURI_lte: String
tokenURI_in: [String!]
tokenURI_not_in: [String!]
tokenURI_contains: String
tokenURI_contains_nocase: String
tokenURI_not_contains: String
tokenURI_not_contains_nocase: String
tokenURI_starts_with: String
tokenURI_starts_with_nocase: String
tokenURI_not_starts_with: String
tokenURI_not_starts_with_nocase: String
tokenURI_ends_with: String
tokenURI_ends_with_nocase: String
tokenURI_not_ends_with: String
tokenURI_not_ends_with_nocase: String
price: BigInt
price_not: BigInt
price_gt: BigInt
price_lt: BigInt
price_gte: BigInt
price_lte: BigInt
price_in: [BigInt!]
price_not_in: [BigInt!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [NFT_filter]
or: [NFT_filter]
}
enum NFT_orderBy {
id
from
to
tokenURI
price
}
"""Defines the order direction, either ascending or descending"""
enum OrderDirection {
asc
desc
}
type Query {
nft(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): NFT
nfts(
skip: Int = 0
first: Int = 100
orderBy: NFT_orderBy
orderDirection: OrderDirection
where: NFT_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [NFT!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type Subscription {
nft(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): NFT
nfts(
skip: Int = 0
first: Int = 100
orderBy: NFT_orderBy
orderDirection: OrderDirection
where: NFT_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [NFT!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type _Block_ {
"""The hash of the block"""
hash: Bytes
"""The block number"""
number: Int!
"""Integer representation of the timestamp stored in blocks for the chain"""
timestamp: Int
}
"""The type for the top-level _meta field"""
type _Meta_ {
"""
Information about a specific subgraph block. The hash of the block
will be null if the _meta field has a block constraint that asks for
a block number. It will be filled if the _meta field has no block constraint
and therefore asks for the latest block
"""
block: _Block_!
"""The deployment ID"""
deployment: String!
"""If `true`, the subgraph encountered indexing errors at some past block"""
hasIndexingErrors: Boolean!
}
enum _SubgraphErrorPolicy_ {
"""Data will be returned even if the subgraph has indexing errors"""
allow
"""
If the subgraph has indexing errors, data will be omitted. The default.
"""
deny
}