Class: GraphQL::Execution::Lookahead::NullLookahead
- Inherits:
-
GraphQL::Execution::Lookahead
- Object
- GraphQL::Execution::Lookahead
- GraphQL::Execution::Lookahead::NullLookahead
- Defined in:
- lib/graphql/execution/lookahead.rb
Overview
This is returned for #selection when a non-existent field is passed
Constant Summary
Constants inherited from GraphQL::Execution::Lookahead
Instance Attribute Summary
Attributes inherited from GraphQL::Execution::Lookahead
#ast_nodes, #field, #owner_type
Instance Method Summary collapse
-
#initialize ⇒ NullLookahead
constructor
No inputs required here.
-
#inspect ⇒ Object
-
#selected? ⇒ Boolean
-
#selection ⇒ Object
-
#selections ⇒ Object
-
#selects? ⇒ Boolean
Methods inherited from GraphQL::Execution::Lookahead
Constructor Details
#initialize ⇒ NullLookahead
No inputs required here.
182 183 |
# File 'lib/graphql/execution/lookahead.rb', line 182 def initialize end |
Instance Method Details
#inspect ⇒ Object
201 202 203 |
# File 'lib/graphql/execution/lookahead.rb', line 201 def inspect "#<GraphQL::Execution::Lookahead::NullLookahead>" end |
#selected? ⇒ Boolean
185 186 187 |
# File 'lib/graphql/execution/lookahead.rb', line 185 def selected? false end |
#selection ⇒ Object
193 194 195 |
# File 'lib/graphql/execution/lookahead.rb', line 193 def selection(*) NULL_LOOKAHEAD end |
#selections ⇒ Object
197 198 199 |
# File 'lib/graphql/execution/lookahead.rb', line 197 def selections(*) [] end |
#selects? ⇒ Boolean
189 190 191 |
# File 'lib/graphql/execution/lookahead.rb', line 189 def selects?(*) false end |