Method: GraphQL::Schema::Member::BaseDSLMethods#name
- Defined in:
- lib/graphql/schema/member/base_dsl_methods.rb
#name(new_name = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Just a convenience method to point out that people should use graphql_name instead
30 31 32 33 34 35 36 37 |
# File 'lib/graphql/schema/member/base_dsl_methods.rb', line 30 def name(new_name = nil) return super() if new_name.nil? fail( "The new name override method is `graphql_name`, not `name`. Usage: "\ "graphql_name \"#{new_name}\"" ) end |