summaryrefslogtreecommitdiffstats
path: root/backend/src/schema.graphql
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-08 10:41:16 -0500
committerWes Bos <wesbos@gmail.com>2018-02-08 10:41:16 -0500
commit19c9683e2126c68cb9d231293162c756d69c51fb (patch)
tree4679ca2dee47740aa0bf6fe623513c4242e027e6 /backend/src/schema.graphql
parenteabff7cd396d1f37ceb929e666f082ce57f07919 (diff)
WIP
Diffstat (limited to 'backend/src/schema.graphql')
-rw-r--r--backend/src/schema.graphql5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql
index 993236e..8a2fa23 100644
--- a/backend/src/schema.graphql
+++ b/backend/src/schema.graphql
@@ -26,7 +26,8 @@ type Query {
type Mutation {
signup(email: String!, password: String!, name: String!): AuthPayload!
- login(email: String!, password: String!): AuthPayload!
+ signin(email: String!, password: String!): AuthPayload!
+ requestReset(email: String!): User
createDraft(title: String!, text: String!): Post!
publish(id: ID!): Post!
deletePost(id: ID!): Post!
@@ -41,7 +42,6 @@ type AuthPayload {
user: User!
}
-# THe user definition overrides
type User {
id: ID!
email: String!
@@ -49,4 +49,5 @@ type User {
name: String!
posts: [Post!]!
age: Int
+ resetToken: String
}