-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
60 lines (51 loc) · 1.04 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
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
"All mutations for the Protosite API."
type Mutation {
createPage(data: Json!): Page
createUser(email: String!, name: String!, password: String!): User
publishPage(id: ID!): Page
removePage(id: ID!): Page
updateCurrentUser(email: String, password: String): User
updatePage(data: Json!, id: ID!): Page
}
type Notification {
message: String!
}
type Page {
data: Json!
id: ID!
pages: [Page!]
parent: Page
slug: String!
sort: String!
versions: [Json!]!
}
"All queries for the Protosite API."
type Query {
currentUser: User
page(id: ID!): Page
pages: [Page!]
}
"All Protosite event subscriptions."
type Subscription {
notification: Notification
pageCreated: Page
pageRemoved: Page
pageUpdated: Page
userCreated: User
userUpdated(id: ID!): User
}
type User {
email: String!
id: ID!
name: String!
pack: String
permissions: Json
token: String
}
scalar Json