Skip to content

Commit 1b96c5c

Browse files
committed
Fix bug
1 parent c542a73 commit 1b96c5c

File tree

1 file changed

+103
-44
lines changed

1 file changed

+103
-44
lines changed

schema.graphql

Lines changed: 103 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ input CartOption {
1616
}
1717

1818
type CartProductOption {
19-
name: String
20-
value: String
21-
type: String
19+
name: String
20+
value: String
21+
type: String
2222
}
2323

2424
type CartProduct {
@@ -185,13 +185,13 @@ type postReview {
185185
}
186186

187187
type Country {
188-
id: ID
189-
name: String
188+
id: ID
189+
name: String
190190
}
191191
type Zone {
192-
id: ID
193-
name: String
194-
countryId: String
192+
id: ID
193+
name: String
194+
countryId: String
195195
}
196196

197197
type Product {
@@ -211,8 +211,8 @@ type Product {
211211
stock: Boolean
212212
rating: Float
213213
attributes: [productAttribute]
214-
reviews: [productReview]
215-
options: [productOption]
214+
reviews: [ProductReview]
215+
options: [ProductOption]
216216
images(limit: Int = 3): [productImage]
217217
keyword: String
218218
meta: Meta
@@ -229,7 +229,7 @@ type productImage {
229229
imageBig: String
230230
}
231231

232-
type productOption {
232+
type ProductOption {
233233
id: String
234234
name: String
235235
type: String
@@ -267,7 +267,7 @@ type ZonesResult {
267267
totalElements: Int
268268
}
269269

270-
type productReview {
270+
type ProductReview {
271271
author: String
272272
author_email: String
273273
content: String
@@ -276,30 +276,30 @@ type productReview {
276276
}
277277

278278
type ContactResult {
279-
status: Boolean
279+
status: Boolean
280280
}
281281

282282
type Location {
283-
image: String
284-
imageLazy: String
285-
address: String
286-
geocode: String
287-
telephone: String
288-
fax: String
289-
open: String
290-
comment: String
283+
image: String
284+
imageLazy: String
285+
address: String
286+
geocode: String
287+
telephone: String
288+
fax: String
289+
open: String
290+
comment: String
291291
}
292292

293293
type Contact {
294-
locations: [Location]
295-
store: String
296-
address: String
297-
email: String
298-
geocode: String
299-
telephone: String
300-
fax: String
301-
open: String
302-
comment: String
294+
locations: [Location]
295+
store: String
296+
address: String
297+
email: String
298+
geocode: String
299+
telephone: String
300+
fax: String
301+
open: String
302+
comment: String
303303
}
304304

305305
type AccountAddress {
@@ -338,13 +338,13 @@ type CheckoutLinkResult {
338338
}
339339

340340
type Meta {
341-
title: String
342-
description: String
343-
keyword: String
341+
title: String
342+
description: String
343+
keyword: String
344344
}
345345

346346
type HomeResult {
347-
meta: Meta
347+
meta: Meta
348348
}
349349

350350
type LoginResult {
@@ -361,8 +361,17 @@ type RootMutationType {
361361
accountEditPassword(password: String): Customer
362362
accountAddAddress(address: AccountAddressInput): AccountAddress
363363
accountEditAddress(id: String, address: AccountAddressInput): AccountAddress
364-
accountRemoveAddress(id: String, page: Int = 1, size: Int = 10): [AccountAddress]
365-
addBlogPostReview(id: String, rating: Float, author: String, content: String): Post
364+
accountRemoveAddress(
365+
id: String
366+
page: Int = 1
367+
size: Int = 10
368+
): [AccountAddress]
369+
addBlogPostReview(
370+
id: String
371+
rating: Float
372+
author: String
373+
content: String
374+
): Post
366375
addToCart(id: String, quantity: Int = 1, options: [CartOption] = []): Cart
367376
updateCart(key: String, quantity: Int = 1): Cart
368377
removeCart(key: String): Cart
@@ -379,22 +388,73 @@ type RootMutationType {
379388
type RootQueryType {
380389
home: HomeResult
381390
zone(id: Int): Zone
382-
zonesList(page: Int = 1, size: Int = 10, search: String, country_id: String, sort: String = "name", order: String = "ASC"): ZonesResult
391+
zonesList(
392+
page: Int = 1
393+
size: Int = 10
394+
search: String
395+
country_id: String
396+
sort: String = "name"
397+
order: String = "ASC"
398+
): ZonesResult
383399
country(id: Int): Country
384-
countriesList(page: Int = 1, size: Int = 10, search: String, sort: String = "name", order: String = "ASC"): CountriesResult
400+
countriesList(
401+
page: Int = 1
402+
size: Int = 10
403+
search: String
404+
sort: String = "name"
405+
order: String = "ASC"
406+
): CountriesResult
385407
categoryBlog(id: String): categoryBlog
386-
categoriesBlogList(page: Int = 1, size: Int = 10, filter: String, parent: Int = -1, sort: String = "sort_order", order: String = "ASC"): categoryBlogResult
408+
categoriesBlogList(
409+
page: Int = 1
410+
size: Int = 10
411+
filter: String
412+
parent: Int = -1
413+
sort: String = "sort_order"
414+
order: String = "ASC"
415+
): categoryBlogResult
387416
post(id: String): Post
388-
postsList(page: Int = 1, size: Int = 10, filter: String, search: String, category_id: String = "", sort: String = "sort_order", order: String = "ASC"): PostResult
417+
postsList(
418+
page: Int = 1
419+
size: Int = 10
420+
filter: String
421+
search: String
422+
category_id: String = ""
423+
sort: String = "sort_order"
424+
order: String = "ASC"
425+
): PostResult
389426
cart: Cart
390427
category(id: String): Category
391-
categoriesList(page: Int = 1, size: Int = 10, filter: String, parent: Int = -1, sort: String = "sort_order", order: String = "ASC"): CategoryResult
428+
categoriesList(
429+
page: Int = 1
430+
size: Int = 10
431+
filter: String
432+
parent: Int = -1
433+
sort: String = "sort_order"
434+
order: String = "ASC"
435+
): CategoryResult
392436
compare: [Product]
393437
currency: [Currency]
394438
language: [Language]
395439
page(id: String): Page
396-
pagesList(page: Int = 1, size: Int = 10, search: String = "", sort: String = "sort_order", order: String = "ASC"): PageResult
397-
productsList(page: Int = 1, size: Int = 15, filter: String = "", special: Boolean = false, search: String = "", ids: [Int] = [], category_id: String = "", sort: String = "sort_order", order: String = "ASC"): ProductResult
440+
pagesList(
441+
page: Int = 1
442+
size: Int = 10
443+
search: String = ""
444+
sort: String = "sort_order"
445+
order: String = "ASC"
446+
): PageResult
447+
productsList(
448+
page: Int = 1
449+
size: Int = 15
450+
filter: String = ""
451+
special: Boolean = false
452+
search: String = ""
453+
ids: [Int] = []
454+
category_id: String = ""
455+
sort: String = "sort_order"
456+
order: String = "ASC"
457+
): ProductResult
398458
product(id: String): Product
399459
wishlist: [Product]
400460
contact: Contact
@@ -403,4 +463,3 @@ type RootQueryType {
403463
accountAddress(id: String): AccountAddress
404464
checkoutLink: CheckoutLinkResult
405465
}
406-

0 commit comments

Comments
 (0)