# import CartItem, ItemWhereInput, ItemOrderByInput, allItems, Post, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput from './generated/prisma.graphql' type Query { feed: [Post!]! drafts: [Post!]! post(id: ID!): Post! me: User itemsConnection( where: ItemWhereInput orderBy: ItemOrderByInput skip: Int after: String before: String first: Int last: Int ): ItemConnection! items( where: ItemWhereInput orderBy: ItemOrderByInput skip: Int first: Int ): [Item]! } # import Mutation from './generated/prisma.graphql' type Mutation { signup(email: String!, password: String!, name: String!): AuthPayload! 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): Item! deleteItem(id: ID!): Item! updateItem(id: ID!, title: String, description: String, price: Int): Item! addToCart(id: ID!): CartItem removeFromCart(id: ID!): CartItem } type AuthPayload { token: String! user: User! } type User { id: ID! email: String! website: String name: String! posts: [Post!]! age: Int cart: [CartItem!]! }