From ebb84f1f01396cf75e7fb70bb0e2987bbc0b14b2 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 10 Aug 2018 13:14:27 -0400 Subject: 30 --- stepped-solutions/27/backend/src/schema.graphql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 stepped-solutions/27/backend/src/schema.graphql (limited to 'stepped-solutions/27/backend/src/schema.graphql') diff --git a/stepped-solutions/27/backend/src/schema.graphql b/stepped-solutions/27/backend/src/schema.graphql new file mode 100755 index 0000000..f2cc283 --- /dev/null +++ b/stepped-solutions/27/backend/src/schema.graphql @@ -0,0 +1,15 @@ +# 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 + signup(email: String!, password: String!, name: String!): User! +} + +type Query { + items(where: ItemWhereInput, orderBy: ItemOrderByInput, skip: Int, first: Int): [Item]! + item(where: ItemWhereUniqueInput!): Item + itemsConnection(where: ItemWhereInput): ItemConnection! + me: User +} -- cgit v1.3