class Attio::Internal::Record

def list(object:, **opts)

List records for an object
def list(object:, **opts)
  validate_object_identifier!(object)
  # Extract query parameters from opts
  # Handle both opts[:params] (from find_by) and direct opts (from other callers)
  params = opts[:params] || opts
  query_params = build_query_params(params)
  response = execute_request(:POST, "#{resource_path}/#{object}/records/query", query_params, opts)
  APIResource::ListObject.new(response, self, opts.merge(object: object), opts)
end