Skip to content

Commit

Permalink
feat(issue): create mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 committed Jul 2, 2024
1 parent fd7961e commit 3d73254
Show file tree
Hide file tree
Showing 20 changed files with 1,455 additions and 16 deletions.
4 changes: 2 additions & 2 deletions internal/api/graphql/graph/baseResolver/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func SingleIssueBaseResolver(app app.Heureka, ctx context.Context, parent *model
}

var ir entity.IssueResult = issues.Elements[0]
issue := model.NewIssue(&ir)
issue := model.NewIssueWithAggregations(&ir)

return &issue, nil
}
Expand Down Expand Up @@ -113,7 +113,7 @@ func IssueBaseResolver(app app.Heureka, ctx context.Context, filter *model.Issue

edges := []*model.IssueEdge{}
for _, result := range issues.Elements {
iss := model.NewIssue(&result)
iss := model.NewIssueWithAggregations(&result)
edge := model.IssueEdge{
Node: &iss,
Cursor: result.Cursor(),
Expand Down
Loading

0 comments on commit 3d73254

Please sign in to comment.