Skip to content

Remove calls to deprecated `to_graphql`

Brett Walker requested to merge bw-graphql-remove-to_graphql into master

What does this MR do and why?

.to_graphql is deprecated to GraphQL-Ruby 2.0. While our current code base, which is user 1.11.x of the graphql gem is not seeing this deprecation message, we're seeing it in !27536 (merged) as we're upgrading the gem.

Legacy `.to_graphql` objects are deprecated and will be removed in GraphQL-Ruby 2.0. Remove `.to_graphql` to use a class-based definition instead.

This MR removes what is possible now, to minimize changes in !27536 (merged).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading