(ctx context.Context)
| 1320 | } |
| 1321 | |
| 1322 | func getAuthMode(ctx context.Context) AuthMode { |
| 1323 | if auth := ctx.Value(Authorize); auth == nil || auth.(bool) { |
| 1324 | return NeedAuthorize |
| 1325 | } |
| 1326 | return NoAuthorize |
| 1327 | } |
| 1328 | |
| 1329 | // QueryGraphQL handles only GraphQL queries, neither mutations nor DQL. |
| 1330 | func (s *Server) QueryGraphQL(ctx context.Context, req *api.Request, |
no test coverage detected