@vendure/docs 0.0.0-202601211343 → 0.0.0-202601211352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/reference/graphql-api/admin/enums.mdx +1139 -0
- package/docs/reference/graphql-api/admin/input-types.mdx +4708 -0
- package/docs/reference/graphql-api/admin/mutations.mdx +2750 -0
- package/docs/reference/graphql-api/admin/object-types.mdx +4973 -0
- package/docs/reference/graphql-api/admin/queries.mdx +1194 -0
- package/docs/reference/graphql-api/shop/enums.mdx +1063 -0
- package/docs/reference/graphql-api/shop/input-types.mdx +1113 -0
- package/docs/reference/graphql-api/shop/mutations.mdx +540 -0
- package/docs/reference/graphql-api/shop/object-types.mdx +3693 -0
- package/docs/reference/graphql-api/shop/queries.mdx +314 -0
- package/package.json +1 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Queries"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## activeChannel {#activechannel}
|
|
9
|
+
|
|
10
|
+
<GraphQLDoc
|
|
11
|
+
type="query"
|
|
12
|
+
typeName="activeChannel"
|
|
13
|
+
typeLinks={{
|
|
14
|
+
Channel: '/reference/graphql-api/shop/object-types#channel',
|
|
15
|
+
}}
|
|
16
|
+
>
|
|
17
|
+
{`"""The active Channel"""
|
|
18
|
+
type Query {
|
|
19
|
+
activeChannel: Channel!
|
|
20
|
+
}`}
|
|
21
|
+
</GraphQLDoc>
|
|
22
|
+
|
|
23
|
+
## activeCustomer {#activecustomer}
|
|
24
|
+
|
|
25
|
+
<GraphQLDoc
|
|
26
|
+
type="query"
|
|
27
|
+
typeName="activeCustomer"
|
|
28
|
+
typeLinks={{
|
|
29
|
+
Customer: '/reference/graphql-api/shop/object-types#customer',
|
|
30
|
+
}}
|
|
31
|
+
>
|
|
32
|
+
{`"""The active Customer"""
|
|
33
|
+
type Query {
|
|
34
|
+
activeCustomer: Customer
|
|
35
|
+
}`}
|
|
36
|
+
</GraphQLDoc>
|
|
37
|
+
|
|
38
|
+
## activeOrder {#activeorder}
|
|
39
|
+
|
|
40
|
+
<GraphQLDoc
|
|
41
|
+
type="query"
|
|
42
|
+
typeName="activeOrder"
|
|
43
|
+
typeLinks={{
|
|
44
|
+
Order: '/reference/graphql-api/shop/object-types#order',
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
{`"""
|
|
48
|
+
The active Order. Will be \`null\` until an Order is created via \`addItemToOrder\`. Once an Order reaches the
|
|
49
|
+
state of \`PaymentAuthorized\` or \`PaymentSettled\`, then that Order is no longer considered "active" and this
|
|
50
|
+
query will once again return \`null\`.
|
|
51
|
+
"""
|
|
52
|
+
type Query {
|
|
53
|
+
activeOrder: Order
|
|
54
|
+
}`}
|
|
55
|
+
</GraphQLDoc>
|
|
56
|
+
|
|
57
|
+
## activePaymentMethods {#activepaymentmethods}
|
|
58
|
+
|
|
59
|
+
<GraphQLDoc
|
|
60
|
+
type="query"
|
|
61
|
+
typeName="activePaymentMethods"
|
|
62
|
+
typeLinks={{
|
|
63
|
+
PublicPaymentMethod: '/reference/graphql-api/shop/object-types#publicpaymentmethod',
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
{`"""Get active payment methods"""
|
|
67
|
+
type Query {
|
|
68
|
+
activePaymentMethods: [PublicPaymentMethod]!
|
|
69
|
+
}`}
|
|
70
|
+
</GraphQLDoc>
|
|
71
|
+
|
|
72
|
+
## activeShippingMethods {#activeshippingmethods}
|
|
73
|
+
|
|
74
|
+
<GraphQLDoc
|
|
75
|
+
type="query"
|
|
76
|
+
typeName="activeShippingMethods"
|
|
77
|
+
typeLinks={{
|
|
78
|
+
PublicShippingMethod: '/reference/graphql-api/shop/object-types#publicshippingmethod',
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
{`"""Get active shipping methods"""
|
|
82
|
+
type Query {
|
|
83
|
+
activeShippingMethods: [PublicShippingMethod]!
|
|
84
|
+
}`}
|
|
85
|
+
</GraphQLDoc>
|
|
86
|
+
|
|
87
|
+
## availableCountries {#availablecountries}
|
|
88
|
+
|
|
89
|
+
<GraphQLDoc
|
|
90
|
+
type="query"
|
|
91
|
+
typeName="availableCountries"
|
|
92
|
+
typeLinks={{
|
|
93
|
+
Country: '/reference/graphql-api/shop/object-types#country',
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{`"""An array of supported Countries"""
|
|
97
|
+
type Query {
|
|
98
|
+
availableCountries: [Country!]!
|
|
99
|
+
}`}
|
|
100
|
+
</GraphQLDoc>
|
|
101
|
+
|
|
102
|
+
## collection {#collection}
|
|
103
|
+
|
|
104
|
+
<GraphQLDoc
|
|
105
|
+
type="query"
|
|
106
|
+
typeName="collection"
|
|
107
|
+
typeLinks={{
|
|
108
|
+
Collection: '/reference/graphql-api/shop/object-types#collection',
|
|
109
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
110
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
111
|
+
}}
|
|
112
|
+
>
|
|
113
|
+
{`"""Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result."""
|
|
114
|
+
type Query {
|
|
115
|
+
collection(id: ID, slug: String): Collection
|
|
116
|
+
}`}
|
|
117
|
+
</GraphQLDoc>
|
|
118
|
+
|
|
119
|
+
## collections {#collections}
|
|
120
|
+
|
|
121
|
+
<GraphQLDoc
|
|
122
|
+
type="query"
|
|
123
|
+
typeName="collections"
|
|
124
|
+
typeLinks={{
|
|
125
|
+
CollectionList: '/reference/graphql-api/shop/object-types#collectionlist',
|
|
126
|
+
CollectionListOptions: '/reference/graphql-api/shop/input-types#collectionlistoptions',
|
|
127
|
+
}}
|
|
128
|
+
>
|
|
129
|
+
{`"""A list of Collections available to the shop"""
|
|
130
|
+
type Query {
|
|
131
|
+
collections(options: CollectionListOptions): CollectionList!
|
|
132
|
+
}`}
|
|
133
|
+
</GraphQLDoc>
|
|
134
|
+
|
|
135
|
+
## eligiblePaymentMethods {#eligiblepaymentmethods}
|
|
136
|
+
|
|
137
|
+
<GraphQLDoc
|
|
138
|
+
type="query"
|
|
139
|
+
typeName="eligiblePaymentMethods"
|
|
140
|
+
typeLinks={{
|
|
141
|
+
PaymentMethodQuote: '/reference/graphql-api/shop/object-types#paymentmethodquote',
|
|
142
|
+
}}
|
|
143
|
+
>
|
|
144
|
+
{`"""Returns a list of payment methods and their eligibility based on the current active Order"""
|
|
145
|
+
type Query {
|
|
146
|
+
eligiblePaymentMethods: [PaymentMethodQuote!]!
|
|
147
|
+
}`}
|
|
148
|
+
</GraphQLDoc>
|
|
149
|
+
|
|
150
|
+
## eligibleShippingMethods {#eligibleshippingmethods}
|
|
151
|
+
|
|
152
|
+
<GraphQLDoc
|
|
153
|
+
type="query"
|
|
154
|
+
typeName="eligibleShippingMethods"
|
|
155
|
+
typeLinks={{
|
|
156
|
+
ShippingMethodQuote: '/reference/graphql-api/shop/object-types#shippingmethodquote',
|
|
157
|
+
}}
|
|
158
|
+
>
|
|
159
|
+
{`"""Returns a list of eligible shipping methods based on the current active Order"""
|
|
160
|
+
type Query {
|
|
161
|
+
eligibleShippingMethods: [ShippingMethodQuote!]!
|
|
162
|
+
}`}
|
|
163
|
+
</GraphQLDoc>
|
|
164
|
+
|
|
165
|
+
## facet {#facet}
|
|
166
|
+
|
|
167
|
+
<GraphQLDoc
|
|
168
|
+
type="query"
|
|
169
|
+
typeName="facet"
|
|
170
|
+
typeLinks={{
|
|
171
|
+
Facet: '/reference/graphql-api/shop/object-types#facet',
|
|
172
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
173
|
+
}}
|
|
174
|
+
>
|
|
175
|
+
{`"""Returns a Facet by its id"""
|
|
176
|
+
type Query {
|
|
177
|
+
facet(id: ID!): Facet
|
|
178
|
+
}`}
|
|
179
|
+
</GraphQLDoc>
|
|
180
|
+
|
|
181
|
+
## facets {#facets}
|
|
182
|
+
|
|
183
|
+
<GraphQLDoc
|
|
184
|
+
type="query"
|
|
185
|
+
typeName="facets"
|
|
186
|
+
typeLinks={{
|
|
187
|
+
FacetList: '/reference/graphql-api/shop/object-types#facetlist',
|
|
188
|
+
FacetListOptions: '/reference/graphql-api/shop/input-types#facetlistoptions',
|
|
189
|
+
}}
|
|
190
|
+
>
|
|
191
|
+
{`"""A list of Facets available to the shop"""
|
|
192
|
+
type Query {
|
|
193
|
+
facets(options: FacetListOptions): FacetList!
|
|
194
|
+
}`}
|
|
195
|
+
</GraphQLDoc>
|
|
196
|
+
|
|
197
|
+
## me {#me}
|
|
198
|
+
|
|
199
|
+
<GraphQLDoc
|
|
200
|
+
type="query"
|
|
201
|
+
typeName="me"
|
|
202
|
+
typeLinks={{
|
|
203
|
+
CurrentUser: '/reference/graphql-api/shop/object-types#currentuser',
|
|
204
|
+
}}
|
|
205
|
+
>
|
|
206
|
+
{`"""Returns information about the current authenticated User"""
|
|
207
|
+
type Query {
|
|
208
|
+
me: CurrentUser
|
|
209
|
+
}`}
|
|
210
|
+
</GraphQLDoc>
|
|
211
|
+
|
|
212
|
+
## nextOrderStates {#nextorderstates}
|
|
213
|
+
|
|
214
|
+
<GraphQLDoc
|
|
215
|
+
type="query"
|
|
216
|
+
typeName="nextOrderStates"
|
|
217
|
+
typeLinks={{
|
|
218
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
219
|
+
}}
|
|
220
|
+
>
|
|
221
|
+
{`"""Returns the possible next states that the activeOrder can transition to"""
|
|
222
|
+
type Query {
|
|
223
|
+
nextOrderStates: [String!]!
|
|
224
|
+
}`}
|
|
225
|
+
</GraphQLDoc>
|
|
226
|
+
|
|
227
|
+
## order {#order}
|
|
228
|
+
|
|
229
|
+
<GraphQLDoc
|
|
230
|
+
type="query"
|
|
231
|
+
typeName="order"
|
|
232
|
+
typeLinks={{
|
|
233
|
+
Order: '/reference/graphql-api/shop/object-types#order',
|
|
234
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
235
|
+
}}
|
|
236
|
+
>
|
|
237
|
+
{`"""
|
|
238
|
+
Returns an Order based on the id. Note that in the Shop API, only orders belonging to the
|
|
239
|
+
currently-authenticated User may be queried.
|
|
240
|
+
"""
|
|
241
|
+
type Query {
|
|
242
|
+
order(id: ID!): Order
|
|
243
|
+
}`}
|
|
244
|
+
</GraphQLDoc>
|
|
245
|
+
|
|
246
|
+
## orderByCode {#orderbycode}
|
|
247
|
+
|
|
248
|
+
<GraphQLDoc
|
|
249
|
+
type="query"
|
|
250
|
+
typeName="orderByCode"
|
|
251
|
+
typeLinks={{
|
|
252
|
+
Order: '/reference/graphql-api/shop/object-types#order',
|
|
253
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
254
|
+
}}
|
|
255
|
+
>
|
|
256
|
+
{`"""
|
|
257
|
+
Returns an Order based on the order \`code\`. For guest Orders (i.e. Orders placed by non-authenticated Customers)
|
|
258
|
+
this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation
|
|
259
|
+
screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing
|
|
260
|
+
general anonymous access to Order data.
|
|
261
|
+
"""
|
|
262
|
+
type Query {
|
|
263
|
+
orderByCode(code: String!): Order
|
|
264
|
+
}`}
|
|
265
|
+
</GraphQLDoc>
|
|
266
|
+
|
|
267
|
+
## product {#product}
|
|
268
|
+
|
|
269
|
+
<GraphQLDoc
|
|
270
|
+
type="query"
|
|
271
|
+
typeName="product"
|
|
272
|
+
typeLinks={{
|
|
273
|
+
Product: '/reference/graphql-api/shop/object-types#product',
|
|
274
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
275
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
276
|
+
}}
|
|
277
|
+
>
|
|
278
|
+
{`"""Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result."""
|
|
279
|
+
type Query {
|
|
280
|
+
product(id: ID, slug: String): Product
|
|
281
|
+
}`}
|
|
282
|
+
</GraphQLDoc>
|
|
283
|
+
|
|
284
|
+
## products {#products}
|
|
285
|
+
|
|
286
|
+
<GraphQLDoc
|
|
287
|
+
type="query"
|
|
288
|
+
typeName="products"
|
|
289
|
+
typeLinks={{
|
|
290
|
+
ProductList: '/reference/graphql-api/shop/object-types#productlist',
|
|
291
|
+
ProductListOptions: '/reference/graphql-api/shop/input-types#productlistoptions',
|
|
292
|
+
}}
|
|
293
|
+
>
|
|
294
|
+
{`"""Get a list of Products"""
|
|
295
|
+
type Query {
|
|
296
|
+
products(options: ProductListOptions): ProductList!
|
|
297
|
+
}`}
|
|
298
|
+
</GraphQLDoc>
|
|
299
|
+
|
|
300
|
+
## search {#search}
|
|
301
|
+
|
|
302
|
+
<GraphQLDoc
|
|
303
|
+
type="query"
|
|
304
|
+
typeName="search"
|
|
305
|
+
typeLinks={{
|
|
306
|
+
SearchResponse: '/reference/graphql-api/shop/object-types#searchresponse',
|
|
307
|
+
SearchInput: '/reference/graphql-api/shop/input-types#searchinput',
|
|
308
|
+
}}
|
|
309
|
+
>
|
|
310
|
+
{`"""Search Products based on the criteria set by the \`SearchInput\`"""
|
|
311
|
+
type Query {
|
|
312
|
+
search(input: SearchInput!): SearchResponse!
|
|
313
|
+
}`}
|
|
314
|
+
</GraphQLDoc>
|