From f7bea2d1b7be2b70dceb25c9837f608b538e9cec Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Wed, 28 Feb 2018 15:28:15 -0500 Subject: what --- backend/src/schema.graphql | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'backend/src/schema.graphql') 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!]! } -- cgit v1.3