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

@@ -25,6 +25,27 @@ export type Axis = {
subjects: Array<Subject>;
};
/** The connection type for Axis. */
export type AxisConnection = {
__typename?: 'AxisConnection';
/** A list of edges. */
edges: Array<AxisEdge>;
/** A list of nodes. */
nodes: Array<Axis>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type AxisEdge = {
__typename?: 'AxisEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Axis>;
};
export type Category = {
__typename?: 'Category';
id: Scalars['ID']['output'];
@@ -181,6 +202,7 @@ export type PageInfo = {
export type Query = {
__typename?: 'Query';
axes: AxisConnection;
categories: CategoryConnection;
currentUser?: Maybe<User>;
/** Fetches an object given its ID. */
@@ -194,6 +216,14 @@ export type Query = {
};
export type QueryAxesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type QueryCategoriesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;

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.