summaryrefslogtreecommitdiffstats
path: root/stepped-solutions/24/backend/src/schema.graphql
blob: be73f71511c6fb4a7c25f444dabff97333ec59e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# import * from './generated/prisma.graphql'

type Mutation {
  createItem(title: String, description: String, price: Int, image: String, largeImage: String): Item!
  updateItem(id: ID!, title: String, description: String, price: Int): Item!
  deleteItem(id: ID!): Item
}

type Query {
  items(where: ItemWhereInput, orderBy: ItemOrderByInput, skip: Int, first: Int): [Item]!
  item(where: ItemWhereUniqueInput!): Item
  itemsConnection(where: ItemWhereInput): ItemConnection!
}