Skip to content

Commit 9ccef5f

Browse files
committed
chore: update schema
1 parent 1899e68 commit 9ccef5f

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

gql/graphql.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ export type CreateGroupInput = {
4949
scopeSetIDs?: InputMaybe<Array<Scalars['ID']['input']>>;
5050
};
5151

52+
/**
53+
* CreatePointInput is used for create Point object.
54+
* Input was generated by ent.
55+
*/
56+
export type CreatePointInput = {
57+
description?: InputMaybe<Scalars['String']['input']>;
58+
grantedAt?: InputMaybe<Scalars['Time']['input']>;
59+
points?: InputMaybe<Scalars['Int']['input']>;
60+
userID: Scalars['ID']['input'];
61+
};
62+
5263
/**
5364
* CreateQuestionInput is used for create Question object.
5465
* Input was generated by ent.
@@ -388,6 +399,8 @@ export type Mutation = {
388399
createDatabase: Database;
389400
/** Create a new group. */
390401
createGroup?: Maybe<Group>;
402+
/** Create a new point record for a user. */
403+
createPoint?: Maybe<Point>;
391404
/** Create a question. */
392405
createQuestion: Question;
393406
/** Create a new scope set. */
@@ -440,6 +453,11 @@ export type MutationCreateGroupArgs = {
440453
};
441454

442455

456+
export type MutationCreatePointArgs = {
457+
input: CreatePointInput;
458+
};
459+
460+
443461
export type MutationCreateQuestionArgs = {
444462
input: CreateQuestionInput;
445463
};
@@ -897,13 +915,13 @@ export enum QuestionOrderField {
897915

898916
export type QuestionStatistics = {
899917
__typename?: 'QuestionStatistics';
900-
/** 嘗試人數 */
918+
/** Number of users who attempted */
901919
attemptedUsers: Scalars['Int']['output'];
902-
/** 答案正確的提交數 */
920+
/** Number of correct submissions */
903921
correctSubmissionCount: Scalars['Int']['output'];
904-
/** 通過的學生數 */
922+
/** Number of users who passed */
905923
passedUsers: Scalars['Int']['output'];
906-
/** 所有提交數 */
924+
/** Total number of submissions */
907925
submissionCount: Scalars['Int']['output'];
908926
};
909927

schema.graphql

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ input CreateGroupInput {
4343
scopeSetIDs: [ID!]
4444
}
4545

46+
"""
47+
CreatePointInput is used for create Point object.
48+
Input was generated by ent.
49+
"""
50+
input CreatePointInput {
51+
description: String
52+
grantedAt: Time
53+
points: Int
54+
userID: ID!
55+
}
56+
4657
"""
4758
CreateQuestionInput is used for create Question object.
4859
Input was generated by ent.
@@ -383,6 +394,8 @@ type Mutation {
383394
createDatabase(input: CreateDatabaseInput!): Database!
384395
"""Create a new group."""
385396
createGroup(input: CreateGroupInput!): Group
397+
"""Create a new point record for a user."""
398+
createPoint(input: CreatePointInput!): Point
386399
"""Create a question."""
387400
createQuestion(input: CreateQuestionInput!): Question!
388401
"""Create a new scope set."""
@@ -770,13 +783,13 @@ enum QuestionOrderField {
770783
}
771784

772785
type QuestionStatistics {
773-
"""嘗試人數"""
786+
"""Number of users who attempted"""
774787
attemptedUsers: Int!
775-
"""答案正確的提交數"""
788+
"""Number of correct submissions"""
776789
correctSubmissionCount: Int!
777-
"""通過的學生數"""
790+
"""Number of users who passed"""
778791
passedUsers: Int!
779-
"""所有提交數"""
792+
"""Total number of submissions"""
780793
submissionCount: Int!
781794
}
782795

0 commit comments

Comments
 (0)