File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 88 RecommendationResult ,
99 Tool ,
1010 ToolAnswer ,
11+ UserAnswer ,
1112)
1213from utils .graphql .types import DjangoFileType
1314
@@ -79,12 +80,13 @@ class ToolType:
7980class UserSubmissionType :
8081 id : strawberry .ID
8182 catalog_id : strawberry .ID
83+ answers : list [UserAnswerType ]
8284
8385
8486@strawberry_django .type (RecommendationResult )
8587class RecommendationResultType :
8688 id : strawberry .auto
87- submission : strawberry . auto
89+ submission : UserSubmissionType
8890 rank : strawberry .auto
8991 score : strawberry .auto
9092 tool : ToolType
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ input RecommendationResultOrder @oneOf {
262262"""Model representing recommended tools for a submission."""
263263type RecommendationResultType {
264264 id : ID !
265- submission : DjangoModelType !
265+ submission : UserSubmissionType !
266266 rank : Int !
267267
268268 """Proximity score - lower is better (closer match)"""
@@ -367,6 +367,7 @@ input UserSubmissionInput {
367367type UserSubmissionType {
368368 id : ID !
369369 catalogId : ID !
370+ answers : [UserAnswerType ! ]!
370371}
371372
372373type UserSubmissionTypeMutationResponseType {
You can’t perform that action at this time.
0 commit comments