summaryrefslogtreecommitdiffstats
path: root/backend/src/schema.graphql
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-28 15:22:34 -0400
committerWes Bos <wesbos@gmail.com>2018-03-28 15:22:34 -0400
commit65c524251d49ade9d44a62337f3c1c1fed6eedd0 (patch)
treed504ba9cea8d89bbde4b2e809fddb048bd660548 /backend/src/schema.graphql
parenta1fd7eb33bb08610aaf381a64b7f963cd98bfdaa (diff)
Permissions
Diffstat (limited to 'backend/src/schema.graphql')
-rw-r--r--backend/src/schema.graphql4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql
index dc7caba..6613004 100644
--- a/backend/src/schema.graphql
+++ b/backend/src/schema.graphql
@@ -1,4 +1,4 @@
-# import Order, OrderItem, CartItem, ItemWhereInput, ItemOrderByInput, allItems, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput, Query.order, Query.orders from './generated/prisma.graphql'
+# import Permission, Order, OrderItem, CartItem, ItemWhereInput, ItemOrderByInput, allItems, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput, Query.order, Query.orders, Query.users from './generated/prisma.graphql'
type Query {
me: User
@@ -33,6 +33,7 @@ type Mutation {
removeFromCart(id: ID!): CartItem
createOrder(token: String!): Order!
updateUser(name: String): User
+ updatePermissions(permissions: [Permission], userId: ID!): User
}
input UserInput {
@@ -50,4 +51,5 @@ type User {
name: String!
orders: [Order!]!
cart: [CartItem!]!
+ permissions: [Permission]!
}