This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
generated from Pocket/backend-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema-shared.graphql
99 lines (95 loc) · 2.24 KB
/
schema-shared.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
extend schema
@link(
url: "https://specs.apollo.dev/federation/v2.0"
import: [
"@key"
"@shareable"
"@requires"
"@external"
"@inaccessible"
]
)
"""
A URL - usually, for an interesting story on the internet that's worth saving to Pocket.
"""
scalar Url
"""
A date in the YYYY-MM-DD format.
"""
scalar Date
"""
A positive integer number.
"""
scalar NonNegativeInt
"""
Valid language codes for curated corpus items.
"""
enum CorpusLanguage {
"German"
DE
"English"
EN
"Italian"
IT
"French"
FR
"Spanish"
ES
}
"""
An author associated with a CorpusItem.
"""
type CorpusItemAuthor {
name: String!
sortOrder: Int!
}
"""
Information about pagination in a connection.
"""
type PageInfo @shareable {
"""
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!
"""
When paginating backwards, the cursor to continue.
"""
startCursor: String
}
"""
Pagination request. To determine which edges to return, the connection
evaluates the `before` and `after` cursors (if given) to filter the
edges, then evaluates `first`/`last` to slice the edges (only include a
value for either `first` or `last`, not both). If all fields are null,
by default will return a page with the first 30 elements.
"""
input PaginationInput {
"""
Returns the elements in the list that come after the specified cursor.
The specified cursor is not included in the result.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
The specified cursor is not included in the result.
"""
before: String
"""
Returns the first _n_ elements from the list. Must be a non-negative integer.
If `first` contains a value, `last` should be null/omitted in the input.
"""
first: Int
"""
Returns the last _n_ elements from the list. Must be a non-negative integer.
If `last` contains a value, `first` should be null/omitted in the input.
"""
last: Int
}