module GraphQL::Schema::Member::CachedGraphQLDefinition::DeprecatedToGraphQL
Public Instance Methods
to_graphql(silence_deprecation_warning: false)
click to toggle source
Calls superclass method
# File lib/graphql/schema/member/cached_graphql_definition.rb, line 46 def to_graphql(silence_deprecation_warning: false) unless silence_deprecation_warning message = "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." caller_message = "\n\nCalled on #{self.inspect} from:\n #{caller(1, 25).map { |l| " #{l}" }.join("\n")}" GraphQL::Deprecation.warn(message + caller_message) end super() end