Skip to content

Commit

Permalink
feat(issue): create mutations (#50)
Browse files Browse the repository at this point in the history
* feat(issue): create mutations

* Automatic application of license header

* feat(issue): add mutations

---------

Co-authored-by: License Bot <[email protected]>
  • Loading branch information
MR2011 and License Bot authored Jul 2, 2024
1 parent fd7961e commit 0e0306e
Show file tree
Hide file tree
Showing 21 changed files with 1,495 additions and 4 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 0e0306e

Please sign in to comment.