-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
73 lines (60 loc) · 1.33 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
63
64
65
66
67
68
69
70
71
72
73
### This file was autogenerated by GraphQL Nexus
### Do not make changes to this file directly
"""DateTime"""
scalar DateTime
type Mutation {
createDraft(authorEmail: String, content: String, title: String): Post!
deleteOnePost(where: PostWhereUniqueInput!): Post
publish(id: ID): Post
signupUser(data: UserCreateInput!): User!
}
type Post {
content: String
id: ID!
published: Boolean!
title: String!
}
input PostCreateManyWithoutPostsInput {
connect: [PostWhereUniqueInput!]
create: [PostCreateWithoutAuthorInput!]
}
input PostCreateWithoutAuthorInput {
content: String
createdAt: DateTime
id: ID
published: Boolean!
title: String!
updatedAt: DateTime
}
input PostWhereUniqueInput {
id: ID
}
type Query {
feed: [Post!]!
filterPosts(searchString: String): [Post!]!
post(where: PostWhereUniqueInput!): Post
}
input RoleCreateOneWithoutRoleInput {
connect: RoleWhereUniqueInput
create: RoleCreateWithoutUsersInput
}
input RoleCreateWithoutUsersInput {
id: ID
name: String
}
input RoleWhereUniqueInput {
id: ID
}
type User {
email: String!
id: ID!
name: String
posts(after: String, before: String, first: Int, last: Int, skip: Int): [Post!]
}
input UserCreateInput {
email: String!
id: ID
name: String
posts: PostCreateManyWithoutPostsInput
role: RoleCreateOneWithoutRoleInput
}