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)



52
53
54
55
# File 'lib/graphql/query.rb', line 52

def selected_operation_name
  return nil unless selected_operation
  selected_operation.name
end