-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
88 lines (77 loc) · 1.55 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type Account {
access_token: String
expires_at: Int
id: ID!
id_token: String
provider: String!
providerAccountId: String!
refresh_token: String
scope: String
session_state: String
token_type: String
type: String!
user: User!
userId: String!
}
type Mutation {
createPost(createPostInput: CreatePostInput!): Post!
removePost(id: Int!): Post!
updatePost(updatePostInput: UpdatePostInput!): Post!
}
type Post {
author: User
authorId: String
content: String
createdAt: DateTime!
id: ID!
published: Boolean!
title: String!
updatedAt: DateTime!
viewCount: Int!
}
type Query {
ping: String!
post(id: Int!): Post!
posts: [Post!]!
}
type Session {
expires: DateTime!
id: ID!
sessionToken: String!
user: User!
userId: String!
}
type User {
_count: UserCount!
accounts: [Account!]
email: String!
emailVerified: DateTime
id: ID!
image: String
name: String
password: String
posts: [Post!]
sessions: [Session!]
slug: String
}
type UserCount {
accounts: Int!
posts: Int!
sessions: Int!
}
"A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format."
scalar DateTime
input CreatePostInput {
"Example field (placeholder)"
exampleField: Int!
}
input UpdatePostInput {
"Example field (placeholder)"
exampleField: Int
id: Int!
}