Method: GraphQL::Query#lookahead
- Defined in:
- lib/graphql/query.rb
#lookahead ⇒ GraphQL::Execution::Lookahead
A lookahead for the root selections of this query
234 235 236 237 238 239 240 241 242 |
# File 'lib/graphql/query.rb', line 234 def lookahead @lookahead ||= begin if selected_operation.nil? GraphQL::Execution::Lookahead::NULL_LOOKAHEAD else GraphQL::Execution::Lookahead.new(query: self, root_type: root_type, ast_nodes: [selected_operation]) end end end |