-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
50 lines (43 loc) · 1023 Bytes
/
schema.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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Cart {
items: [Item!]!
}
type Item {
description: String!
name: String!
price: Float!
productId: String!
quantity: Int!
}
input ItemInput {
description: String!
name: String!
price: Float!
productId: String!
quantity: Int!
}
type Mutation {
addItemToCart(cartId: String!, item: ItemInput!): Cart!
addRole(permissions: [String!]!, role: String!): Boolean!
assignRole(role: String!, userId: String!): Boolean!
createSample(name: String!): Sample!
login(email: String!, password: String!): String!
register(email: String!, name: String!, password: String!, role: String! = "user"): User!
}
type Query {
getCarts: [Cart!]!
samples: [Sample!]!
users: [User!]!
}
type Sample {
name: String!
}
type User {
email: String!
name: String!
password: String!
role: String!
}