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/30/src/schema.graphql | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 stepped-solutions/30/src/schema.graphql (limited to 'stepped-solutions/30/src/schema.graphql') diff --git a/stepped-solutions/30/src/schema.graphql b/stepped-solutions/30/src/schema.graphql new file mode 100755 index 0000000..d1db1ba --- /dev/null +++ b/stepped-solutions/30/src/schema.graphql @@ -0,0 +1,30 @@ +# import * from './generated/prisma.graphql' + +type SuccessMessage { + message: String +} + +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! + signin(email: String!, password: String!): User! + signout: SuccessMessage + requestReset(email: String!): SuccessMessage + resetPassword(resetToken: String!, password: String!, confirmPassword: String!): User! +} + +type Query { + items(where: ItemWhereInput, orderBy: ItemOrderByInput, skip: Int, first: Int): [Item]! + item(where: ItemWhereUniqueInput!): Item + itemsConnection(where: ItemWhereInput): ItemConnection! + me: User +} + +type User{ + id: ID! + name: String! + email: String! + permissions: [Permission!]! +} -- cgit v1.3