code: func (c *QueryController) Show(ctx *app.ShowQueryContext) error {
  	currentUserIdentityID, err := login.ContextIdentity(ctx)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrUnauthorized(err.Error()))
  	}
  	var q *query.Query
  	err = application.Transactional(c.db, func(appl application.Application) error {
  		err := appl.Spaces().CheckExists(ctx, ctx.SpaceID)
  		if err != nil {
  			return errs.WithStack(err)
  		}
  		q, err = appl.Queries().Load(ctx, ctx.QueryID, ctx.SpaceID)
  		return errs.WithStack(err)
  	})
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, err)
  	}
  	if *currentUserIdentityID != q.Creator {
  		log.Warn(ctx, map[string]interface{}{
  			"query_id":     ctx.QueryID,
  			"creator":      q.Creator,
  			"current_user": *currentUserIdentityID,
  		}, "user is not the query creator")
  		return jsonapi.JSONErrorResponse(ctx, errors.NewForbiddenError("user is not the query creator"))
  	}
  	res := &app.QuerySingle{
  		Data: ConvertQuery(ctx.Request, *q),
  	}
  	return ctx.OK(res)
  }
docs: // Show runs the show action.