This repository was archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
53 lines (48 loc) · 1.52 KB
/
schema.graphql
File metadata and controls
53 lines (48 loc) · 1.52 KB
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
type DraftUploadFile {
draftId: String
fileUrl: String
signedUrl: String
}
type LoginResult {
seller: Seller
token: String
}
type Mutation {
create_product: Product
delete_product(id: String): Boolean
logout: Boolean
seller_login(emailOrUsername: String, password: String): LoginResult
seller_signup(confirmPassword: String, email: String, password: String, username: String): LoginResult
update_product(audioPreviewDraftId: String, audioProductDraftId: String, currency: String, description: String, enabled: Boolean, id: String, imageDraftId: String, name: String, price: Float): Product
update_seller(bio: String, email: String, password: String, userImageDraftId: String): Seller
upload_product_draft_audio_preview(contentType: String, id: String): DraftUploadFile
upload_product_draft_audio_product(contentType: String, id: String): DraftUploadFile
upload_product_draft_display_image(contentType: String, id: String): DraftUploadFile
upload_seller_draft_user_image(contentType: String): DraftUploadFile
}
type Product {
audioPreviewUrl: String
audioProductUrl: String
currency: String!
description: String!
enabled: Boolean!
id: ID!
imageUrl: String
name: String!
price: Float!
seller: Seller!
sellerId: ID!
}
type Query {
get_product(fromShop: Boolean, id: String): Product
get_seller(id: String, username: String): Seller
}
type Seller {
bio: String
email: String!
id: ID!
password: String
products(fromShop: Boolean): [Product!]!
userImageUrl: String
username: String!
}