Fix TypeError for GraphqlController#query parameter
What does this MR do and why?
- Contributes to #539209 (closed)
- Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/1533435
Problem
The application raises a server error when the GraphQL query doesn't have a string type.
Solution
Explicitly convert query to String type.
References
TypeError: Gitlab::RequestForgeryProtection::Co... (#539209 - closed)
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #539209 (closed)