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, #owner_type

Instance Method Summary collapse

Methods inherited from GraphQL::Execution::Lookahead

#arguments, #name

Constructor Details

#initializeNullLookahead

No inputs required here.



168
169
# File 'lib/graphql/execution/lookahead.rb', line 168

def initialize
end

Instance Method Details

#inspectObject



187
188
189
# File 'lib/graphql/execution/lookahead.rb', line 187

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

#selected?Boolean

Returns:

  • (Boolean)


171
172
173
# File 'lib/graphql/execution/lookahead.rb', line 171

def selected?
  false
end

#selectionObject



179
180
181
# File 'lib/graphql/execution/lookahead.rb', line 179

def selection(*)
  NULL_LOOKAHEAD
end

#selectionsObject



183
184
185
# File 'lib/graphql/execution/lookahead.rb', line 183

def selections(*)
  []
end

#selects?Boolean

Returns:

  • (Boolean)


175
176
177
# File 'lib/graphql/execution/lookahead.rb', line 175

def selects?(*)
  false
end