Description\nAs workspaces grow, loading all documents at once will degrade performance. We need to support offset pagination and keyword filtering on the /documents list API.\n\nRequirements\nUpdate the document query function to accept page, limit, and query parameters.\nPerform search filtering on document names in the database.\nReturn pagination metadata (total, limit, page, total_pages).
Description\nAs workspaces grow, loading all documents at once will degrade performance. We need to support offset pagination and keyword filtering on the /documents list API.\n\nRequirements\nUpdate the document query function to accept page, limit, and query parameters.\nPerform search filtering on document names in the database.\nReturn pagination metadata (total, limit, page, total_pages).