Method: GraphQL::Types::Relay::ConnectionBehaviors::ClassMethods#edge_nullable
- Defined in:
- lib/graphql/types/relay/connection_behaviors.rb
#edge_nullable(new_value = nil) ⇒ Object
Set the default edge_nullable for this class and its child classes. (Defaults to true.)
Use edge_nullable(false) in your base class to make non-null edge fields.
149 150 151 152 153 154 155 |
# File 'lib/graphql/types/relay/connection_behaviors.rb', line 149 def edge_nullable(new_value = nil) if new_value.nil? defined?(@edge_nullable) ? @edge_nullable : superclass.edge_nullable else @edge_nullable = new_value end end |