-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
62 lines (55 loc) · 1.27 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
### This file was autogenerated by GraphQL Nexus
### Do not make changes to this file directly
type AuthPayload {
token: String!
user: User!
}
scalar DateTime
type Mutation {
createDraft(content: String, title: String!): Post!
deletePost(id: Int!): Post
login(accountId: String!, email: String!, password: String!): AuthPayload!
publish(id: Int): Post
resetPassword(accountId: String, email: String!): AuthPayload!
signup(accountId: String, email: String!, name: String, password: String!): AuthPayload!
verifyEmail(emailVerificationToken: String!): AuthPayload!
}
type Post {
author: User
content: String
id: Int!
published: Boolean!
title: String!
}
type Query {
feed: [Post!]!
filterPosts(searchString: String): [Post!]!
me: User
post(id: Int): Post
}
type User {
accessToken: String
accountAndEmail: String
accountId: String
active: Boolean!
createdAt: DateTime!
email: String!
emailVerificationToken: String
emailVerified: Boolean!
id: Int!
lastIP: String
lastLocation: String
lastLogin: DateTime
lastReferer: String
lastUA: String
loginCount: Int
name: String
phone: String
phoneVerified: Boolean!
picUrl: String
posts: [Post!]!
resetAt: DateTime
updatedAt: DateTime!
username: String
uuid: String!
}