diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-02-28 15:28:15 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-02-28 15:28:15 -0500 |
| commit | f7bea2d1b7be2b70dceb25c9837f608b538e9cec (patch) | |
| tree | 3bac7ad6d76fe9eca1d97f92109d709a141bfc00 /backend/src/schema.graphql | |
| parent | 8f2c595eca30e2d7138c8e8d6685774a8f44e55d (diff) | |
what
Diffstat (limited to 'backend/src/schema.graphql')
| -rw-r--r-- | backend/src/schema.graphql | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql index 84844c6..8d8218a 100644 --- a/backend/src/schema.graphql +++ b/backend/src/schema.graphql @@ -1,9 +1,6 @@ -# import Order, CartItem, ItemWhereInput, ItemOrderByInput, allItems, Post, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput, Query.order, Query.orders from './generated/prisma.graphql' +# import Order, OrderItem, CartItem, ItemWhereInput, ItemOrderByInput, allItems, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput, Query.order, Query.orders from './generated/prisma.graphql' type Query { - feed: [Post!]! - drafts: [Post!]! - post(id: ID!): Post! me: User itemsConnection( where: ItemWhereInput @@ -29,10 +26,6 @@ type Mutation { signin(email: String!, password: String!): AuthPayload! requestReset(email: String!): User resetPassword(resetToken: String!, password: String!, confirmPassword: String!): AuthPayload! - createDraft(title: String!, text: String!): Post! - publish(id: ID!): Post! - deletePost(id: ID!): Post! - updatePost(id: ID!, title: String, text: String): Post! createItem(title: String, description: String, price: Int, image: String): Item! deleteItem(id: ID!): Item! updateItem(id: ID!, title: String, description: String, price: Int): Item! @@ -49,10 +42,7 @@ type AuthPayload { type User { id: ID! email: String! - website: String name: String! - posts: [Post!]! - age: Int orders: [Order!]! cart: [CartItem!]! } |
