File tree Expand file tree Collapse file tree 1 file changed +59
-1
lines changed Expand file tree Collapse file tree 1 file changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,66 @@ export class ClassDataStore extends VuexModule implements classData.ClassData {
78
78
79
79
@action
80
80
public async lessonsOnCurrentDateAuthModeAPIKEY ( date : Date ) {
81
+ const listLessonsByClassSimple = /* GraphQL */ `
82
+ query ListLessonsByClass(
83
+ $classId: ID
84
+ $startTime: ModelStringKeyConditionInput
85
+ $sortDirection: ModelSortDirection
86
+ $filter: ModelLessonFilterInput
87
+ $limit: Int
88
+ $nextToken: String
89
+ ) {
90
+ listLessonsByClass(
91
+ classId: $classId
92
+ startTime: $startTime
93
+ sortDirection: $sortDirection
94
+ filter: $filter
95
+ limit: $limit
96
+ nextToken: $nextToken
97
+ ) {
98
+ items {
99
+ id
100
+ classId
101
+ startTime
102
+ endTime
103
+ title
104
+ subject {
105
+ name
106
+ color
107
+ }
108
+ goal
109
+ description
110
+ videos {
111
+ title
112
+ url
113
+ thumbnailUrl
114
+ }
115
+ pages
116
+ materials {
117
+ title
118
+ url
119
+ }
120
+ isHidden
121
+ owner
122
+ createdAt
123
+ updatedAt
124
+ class {
125
+ id
126
+ className
127
+ owner
128
+ createdAt
129
+ updatedAt
130
+ lessons {
131
+ nextToken
132
+ }
133
+ }
134
+ }
135
+ nextToken
136
+ }
137
+ }
138
+ `
81
139
const lessons = ( await API . graphql ( {
82
- query : listLessonsByClass ,
140
+ query : listLessonsByClassSimple ,
83
141
variables : {
84
142
classId : this . classId ,
85
143
startTime : {
You can’t perform that action at this time.
0 commit comments