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

Constructor Details

#initializeNullLookahead

No inputs required here.



100
101
# File 'lib/graphql/execution/lookahead.rb', line 100

def initialize
end

Instance Method Details

#selected?Boolean

Returns:

  • (Boolean)


103
104
105
# File 'lib/graphql/execution/lookahead.rb', line 103

def selected?
  false
end

#selectionObject



111
112
113
# File 'lib/graphql/execution/lookahead.rb', line 111

def selection(*)
  NULL_LOOKAHEAD
end

#selects?Boolean

Returns:

  • (Boolean)


107
108
109
# File 'lib/graphql/execution/lookahead.rb', line 107

def selects?(*)
  false
end