Class: GraphQL::Execution::Lookahead::NullLookahead

Inherits:
GraphQL::Execution::Lookahead show all
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

NULL_LOOKAHEAD

Instance Attribute Summary

Attributes inherited from GraphQL::Execution::Lookahead

#ast_nodes, #field

Instance Method Summary collapse

Methods inherited from GraphQL::Execution::Lookahead

#name

Constructor Details

#initializeNullLookahead

No inputs required here.



144
145
# File 'lib/graphql/execution/lookahead.rb', line 144

def initialize
end

Instance Method Details

#inspectObject



163
164
165
# File 'lib/graphql/execution/lookahead.rb', line 163

def inspect
  "#<GraphQL::Execution::Lookahead::NullLookahead>"
end

#selected?Boolean

Returns:

  • (Boolean)


147
148
149
# File 'lib/graphql/execution/lookahead.rb', line 147

def selected?
  false
end

#selectionObject



155
156
157
# File 'lib/graphql/execution/lookahead.rb', line 155

def selection(*)
  NULL_LOOKAHEAD
end

#selectionsObject



159
160
161
# File 'lib/graphql/execution/lookahead.rb', line 159

def selections(*)
  []
end

#selects?Boolean

Returns:

  • (Boolean)


151
152
153
# File 'lib/graphql/execution/lookahead.rb', line 151

def selects?(*)
  false
end