-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
74 lines (65 loc) · 1.59 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
schema {
query: ModuleQuery
}
type ModuleQuery {
messages(first: Int after: String last: Int before: String where: MessageFilterInput order: [MessageSortInput!]): MessageConnection
}
type Message {
id: String!
content: String!
}
input MessageFilterInput {
and: [MessageFilterInput!]
or: [MessageFilterInput!]
id: StringOperationFilterInput
content: StringOperationFilterInput
}
input MessageSortInput {
id: SortEnumType
content: SortEnumType
}
"A connection to a list of items."
type MessageConnection {
"Information to aid in pagination."
pageInfo: PageInfo!
"A list of edges."
edges: [MessageEdge!]
"A flattened list of the nodes."
nodes: [Message!]
}
input StringOperationFilterInput {
and: [StringOperationFilterInput!]
or: [StringOperationFilterInput!]
eq: String
neq: String
contains: String
ncontains: String
in: [String]
nin: [String]
startsWith: String
nstartsWith: String
endsWith: String
nendsWith: String
}
enum SortEnumType {
ASC
DESC
}
"Information about pagination in a connection."
type PageInfo {
"Indicates whether more edges exist following the set defined by the clients arguments."
hasNextPage: Boolean!
"Indicates whether more edges exist prior the set defined by the clients arguments."
hasPreviousPage: Boolean!
"When paginating backwards, the cursor to continue."
startCursor: String
"When paginating forwards, the cursor to continue."
endCursor: String
}
"An edge in a connection."
type MessageEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Message!
}