-
Notifications
You must be signed in to change notification settings - Fork 0
/
generated-schema.gql
69 lines (59 loc) · 1.31 KB
/
generated-schema.gql
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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type ProductEntity {
user: UserEntity!
}
type UserEntity {
id: String!
seller: Boolean!
name: String!
email: String!
}
type ProductOutPutType {
id: ID!
title: String!
description: String
image: [String!]!
price: Float!
created_at: DateTime!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type LoginUserOutput {
id: String!
name: String!
seller: String!
created_at: String!
}
type Query {
users: LoginUserOutput!
me: LoginUserOutput!
products: [ProductOutPutType!]!
showProduct(id: String!): ProductEntity!
}
type Mutation {
login(data: LoginUser!): LoginUserOutput!
register(data: RegisterUser!): LoginUserOutput!
createProduct(data: CreateProduct!): ProductEntity!
updateProduct(id: String!, data: CreateProduct!): ProductEntity!
deleteProduct(id: String!): ProductEntity!
}
input LoginUser {
email: String!
password: String!
}
input RegisterUser {
email: String!
password: String!
name: String!
password_confirmation: String!
seller: Boolean!
}
input CreateProduct {
price: Float!
title: String!
description: String!
}