-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
74 lines (60 loc) · 1.29 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
74
### This file was generated by Nexus Schema
### Do not make changes to this file directly
scalar DateTime
scalar Json
type Mutation {
createDraft(authorEmail: String!, content: String, title: String!): Post!
deleteOnePost(where: PostWhereUniqueInput!): Post
publish(id: Int): Post
signupUser(data: UserCreateInput!): User!
}
type Post {
author: User!
content: String
id: Int!
published: Boolean!
title: String!
}
input PostCreateManyWithoutAuthorInput {
connect: [PostWhereUniqueInput!]
create: [PostCreateWithoutAuthorInput!]
}
input PostCreateWithoutAuthorInput {
content: String
createdAt: DateTime
json: Json
published: Boolean
title: String!
}
input PostWhereUniqueInput {
id: Int
}
input ProfileCreateOneWithoutUserInput {
connect: ProfileWhereUniqueInput
create: ProfileCreateWithoutUserInput
}
input ProfileCreateWithoutUserInput {
bio: String
}
input ProfileWhereUniqueInput {
id: Int
userId: Int
}
type Query {
feed: [Post!]!
filterPosts(searchString: String): [Post!]!
post(where: PostWhereUniqueInput!): Post
}
type User {
email: String!
id: Int!
name: String
posts: [Post!]!
}
input UserCreateInput {
email: String!
name: String
password: String
posts: PostCreateManyWithoutAuthorInput
profile: ProfileCreateOneWithoutUserInput
}