Skip to content

Commit 6e2f4c3

Browse files
committed
feat(graph): implement lastSubmission
1 parent 3ef69cd commit 6e2f4c3

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

graph/question.graphqls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,15 @@ extend type Question {
6464
referenceAnswerResult: SQLExecutionResult! @scope(scope: "question:read")
6565

6666
"""
67-
List of your submissions for this question.
67+
List of your submissions for this question, ordered by submitted at descending.
6868
"""
6969
userSubmissions: [Submission!]!
7070

71+
"""
72+
Get the last submission for this question.
73+
"""
74+
lastSubmission: Submission
75+
7176
"""
7277
Have you tried to solve the question?
7378
"""

graph/question.resolvers.go

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)