|
@@ -110,6 +110,13 @@ type Match implements Node
|
|
|
updated_at: DateTime!
|
|
|
}
|
|
|
|
|
|
+type MatchConnection
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ nodes: [Match!]!
|
|
|
+ page_info: PageInfo!
|
|
|
+}
|
|
|
+
|
|
|
input MatchCriteria
|
|
|
@join__type(graph: SPORTS)
|
|
|
{
|
|
@@ -141,12 +148,21 @@ interface Node
|
|
|
id: ID!
|
|
|
}
|
|
|
|
|
|
+type PageInfo
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ start_cursor: String
|
|
|
+ end_cursor: String
|
|
|
+ has_next_page: Boolean!
|
|
|
+ has_previous_page: Boolean!
|
|
|
+}
|
|
|
+
|
|
|
type Query
|
|
|
@join__type(graph: AUTH)
|
|
|
@join__type(graph: SPORTS)
|
|
|
{
|
|
|
User(id: ID!): User @join__field(graph: AUTH)
|
|
|
- MatchList(after: String, before: String, first: Int, last: Int, reverse: Boolean = false, criteria: MatchCriteria!): [Match!]! @join__field(graph: SPORTS)
|
|
|
+ MatchList(after: String, before: String, first: Int, last: Int, reverse: Boolean = false, criteria: MatchCriteria!): MatchConnection! @join__field(graph: SPORTS)
|
|
|
}
|
|
|
|
|
|
enum Sport
|