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 Method Summary collapse

Methods inherited from GraphQL::Execution::Lookahead

#name

Constructor Details

#initializeNullLookahead

No inputs required here.



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

def initialize
end

Instance Method Details

#selected?Boolean

Returns:

  • (Boolean)


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

def selected?
  false
end

#selectionObject



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

def selection(*)
  NULL_LOOKAHEAD
end

#selectionsObject



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

def selections(*)
  []
end

#selects?Boolean

Returns:

  • (Boolean)


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

def selects?(*)
  false
end