summaryrefslogtreecommitdiffstats
path: root/backend/src/schema.graphql
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
committerWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
commit46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (patch)
treea95fd534fc27761d8b26d0dffcdb5f300f7a61c7 /backend/src/schema.graphql
parentf7bea2d1b7be2b70dceb25c9837f608b538e9cec (diff)
wip
Diffstat (limited to 'backend/src/schema.graphql')
-rw-r--r--backend/src/schema.graphql7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql
index 8d8218a..dc7caba 100644
--- a/backend/src/schema.graphql
+++ b/backend/src/schema.graphql
@@ -26,12 +26,17 @@ type Mutation {
signin(email: String!, password: String!): AuthPayload!
requestReset(email: String!): User
resetPassword(resetToken: String!, password: String!, confirmPassword: String!): AuthPayload!
- createItem(title: String, description: String, price: Int, image: String): Item!
+ createItem(title: String, description: String, price: Int, image: String, largeImage: String): Item!
deleteItem(id: ID!): Item!
updateItem(id: ID!, title: String, description: String, price: Int): Item!
addToCart(id: ID!): CartItem
removeFromCart(id: ID!): CartItem
createOrder(token: String!): Order!
+ updateUser(name: String): User
+}
+
+input UserInput {
+ name: String
}
type AuthPayload {