Class: GraphQL::Types::Relay::BaseField
- Inherits:
-
Schema::Field
- Object
- Schema::Field
- GraphQL::Types::Relay::BaseField
- Defined in:
- lib/graphql/types/relay/base_field.rb
Instance Attribute Summary
Attributes inherited from Schema::Field
#deprecation_reason, #description, #max_page_size, #method_str, #method_sym, #name, #original_name, #owner, #resolver_method, #subscription_scope, #trace
Instance Method Summary collapse
-
#initialize(edge_class: nil, **rest, &block) ⇒ BaseField
constructor
A new instance of BaseField.
-
#to_graphql ⇒ Object
Methods inherited from Schema::Field
#accessible?, #authorized?, #complexity, #connection?, connection_extension, #extension, #extensions, #extras, #fetch_extra, from_options, #resolve, #resolve_field, #resolve_field_method, #resolver, #scoped?, #type, #visible?
Methods included from Schema::Member::HasPath
Methods included from Schema::Member::HasArguments
#add_argument, #argument, #argument_class, #arguments, #own_arguments
Methods included from Schema::Member::CachedGraphQLDefinition
#graphql_definition, #initialize_copy
Constructor Details
#initialize(edge_class: nil, **rest, &block) ⇒ BaseField
Returns a new instance of BaseField
7 8 9 10 |
# File 'lib/graphql/types/relay/base_field.rb', line 7 def initialize(edge_class: nil, **rest, &block) @edge_class = edge_class super(**rest, &block) end |
Instance Method Details
#to_graphql ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/graphql/types/relay/base_field.rb', line 12 def to_graphql field = super if @edge_class field.edge_class = @edge_class end field end |