-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
104 lines (92 loc) · 2.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
"Pagination information about the corresponding list of items."
type PageInfo {
"Count of nodes in current request."
count: Int
"Current page of request."
currentPage: Int
"When paginating forwards, the cursor to continue."
endCursor: String
"When paginating forwards, are there more items?"
hasNextPage: Boolean!
"When paginating backwards, are there more items?"
hasPreviousPage: Boolean!
"Last page in connection."
lastPage: Int
"When paginating backwards, the cursor to continue."
startCursor: String
"Total number of node in connection."
total: Int
}
"Pagination information about the corresponding list of items."
type PaginatorInfo {
"Total count of available items in the page."
count: Int!
"Current pagination page."
currentPage: Int!
"Index of first item in the current page."
firstItem: Int
"If collection has more pages."
hasMorePages: Boolean!
"Index of last item in the current page."
lastItem: Int
"Last page number of the collection."
lastPage: Int!
"Number of items per page in the collection."
perPage: Int!
"Total items available in the collection."
total: Int!
}
type Query {
user(id: ID): User
users(
#Limits number of fetched elements.
first: Int = 10,
#The offset from which elements are returned.
page: Int
): UserPaginator
}
type User {
created_at: DateTime!
email: String!
id: ID!
name: String!
updated_at: DateTime!
}
"A paginated list of User items."
type UserPaginator {
"A list of User items."
data: [User!]!
"Pagination information about the list of items."
paginatorInfo: PaginatorInfo!
}
"The available directions for ordering a list of records."
enum SortOrder {
#Sort records in ascending order.
ASC
#Sort records in descending order.
DESC
}
"Specify if you want to include or exclude trashed results from a query."
enum Trashed {
#Only return trashed results.
ONLY
#Return both trashed and non-trashed results.
WITH
#Only return non-trashed results.
WITHOUT
}
"Allows ordering a list of records."
input OrderByClause {
"The column that is used for ordering."
field: String!
"The direction that is used for ordering."
order: SortOrder!
}
"A datetime string with format `Y-m-d H:i:s`, e.g. `2018-01-01 13:00:00`."
scalar DateTime
"A date string with format `Y-m-d`, e.g. `2011-05-23`."
scalar Date