code: func workItemIncludeCommentsAndTotal(ctx context.Context, db application.DB, parentID uuid.UUID) WorkItemConvertFunc {
  	// TODO: Wrap ctx in a Timeout context?
  	count := make(chan int)
  	go func() {
  		defer close(count)
  		application.Transactional(db, func(appl application.Application) error {
  			cs, err := appl.Comments().Count(ctx, parentID)
  			if err != nil {
  				count <- 0
  				return errs.WithStack(err)
  			}
  			count <- cs
  			return nil
  		})
  	}()
  	return func(request *http.Request, wi *workitem.WorkItem, wi2 *app.WorkItem) error {
  		wi2.Relationships.Comments = CreateCommentsRelation(request, wi)
  		wi2.Relationships.Comments.Meta = map[string]interface{}{
  			"totalCount": <-count,
  		}
  		return nil
  	}
  }
docs: // workItemIncludeCommentsAndTotal adds relationship about comments to workitem (include totalCount)