use axis instead os subjects on new assessement page

This commit is contained in:
2023-07-05 11:51:01 -03:00
parent d56483e600
commit 0e21b13035
6 changed files with 221 additions and 106 deletions

View File

@@ -4,6 +4,42 @@ type Axis {
subjects: [Subject!]!
}
"""
The connection type for Axis.
"""
type AxisConnection {
"""
A list of edges.
"""
edges: [AxisEdge!]!
"""
A list of nodes.
"""
nodes: [Axis!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
totalCount: Int!
}
"""
An edge in a connection.
"""
type AxisEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The item at the end of the edge.
"""
node: Axis
}
type Category {
id: ID!
name: String!
@@ -238,6 +274,27 @@ type PageInfo {
}
type Query {
axes(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
"""
before: String
"""
Returns the first _n_ elements from the list.
"""
first: Int
"""
Returns the last _n_ elements from the list.
"""
last: Int
): AxisConnection!
categories(
"""
Returns the elements in the list that come after the specified cursor.