-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathschema.graphql
65 lines (52 loc) · 1.18 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
# 国家
type Contry implements Node {
# The ID of an object
id: ID!
# 国家名称
name: String
# 属于这个国家的著名茶叶
teas(after: String, first: Int, before: String, last: Int): TeaConnection
}
# An object with an ID
interface Node {
# The id of the object.
id: ID!
}
# Information about pagination in a connection.
type PageInfo {
# 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
# When paginating forwards, the cursor to continue.
endCursor: String
}
type Query {
# Fetches an object given its ID
node(
# The ID of an object
id: ID!
): Node
contry(name: String): Contry
}
type Tea implements Node {
# The ID of an object
id: ID!
name: String
}
# A connection to a list of items.
type TeaConnection {
# Information to aid in pagination.
pageInfo: PageInfo!
# A list of edges.
edges: [TeaEdge]
}
# An edge in a connection.
type TeaEdge {
# The item at the end of the edge
node: Tea
# A cursor for use in pagination
cursor: String!
}