Method: GraphQL::Query#selected_operation_name

Defined in:
lib/graphql/query.rb

#selected_operation_nameString?

Returns The name of the operation to run (may be inferred).

Returns:

  • (String, nil)

    The name of the operation to run (may be inferred)



116
117
118
119
# File 'lib/graphql/query.rb', line 116

def selected_operation_name
  return nil unless selected_operation
  selected_operation.name
end