Module: GraphQL::DeprecatedDSL::Methods

Defined in:
lib/graphql/deprecated_dsl.rb

Instance Method Summary collapse

Instance Method Details

#!Object



34
35
36
37
38
# File 'lib/graphql/deprecated_dsl.rb', line 34

def !
  deprecated_caller = caller(1, 1).first
  GraphQL::Deprecation.warn "DeprecatedDSL will be removed from GraphQL-Ruby 2.0, use `.to_non_null_type` instead of `!` at #{deprecated_caller}"
  to_non_null_type
end