diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-06-14 16:44:21 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-06-14 16:44:21 -0400 |
| commit | b1600adec47a04f60e1da07d94a3ed3906ff5aee (patch) | |
| tree | 828f786da6806d7237ee5cbc5df61e552353b85b /backend/src/schema.graphql | |
| parent | a95e08cd2dd5d7ec0a0412adae02515a5f9cec4f (diff) | |
starter files
Diffstat (limited to 'backend/src/schema.graphql')
| -rw-r--r-- | backend/src/schema.graphql | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql deleted file mode 100644 index 07533eb..0000000 --- a/backend/src/schema.graphql +++ /dev/null @@ -1,39 +0,0 @@ -# The Below line looks like a comment, but it's not! -# import * from './generated/prisma.graphql' - -type Query { - me: User - order(id: ID!): Order! - orders(where: OrderWhereInput, orderBy: OrderOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Order]! - items(where: ItemWhereInput, orderBy: ItemOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Item]! - itemsConnection(where: ItemWhereInput, orderBy: ItemOrderByInput, first: Int, last: Int, skip: Int): ItemConnection! -} - -type Mutation { - signup(email: String!, password: String!, name: String!): User! - signin(email: String!, password: String!): User! - requestReset(email: String!): User - resetPassword(resetToken: String!, password: String!, confirmPassword: String!): User! - 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 - signout: SuccessMessage - updatePermissions(permissions: [Permission], userId: ID!): User -} - -type SuccessMessage { - message: String -} - -type User { - id: ID! - email: String! - name: String! - orders: [Order!]! - cart: [CartItem!]! - permissions: [Permission]! -} |
