feat(server): get recently updated docs (#12861)

close AI-218



#### PR Dependency Tree


* **PR #12861** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added a "Recently Updated Documents" feature, allowing users to view a
paginated list of the most recently updated documents within a
workspace.
- Document metadata now includes a "title" field for easier
identification.
- **Tests**
- Introduced new end-to-end tests to verify the recently updated
documents query and its pagination behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fengmk2
2025-06-20 11:35:39 +08:00
committed by GitHub
parent 5623d808bf
commit ad5722f637
7 changed files with 237 additions and 0 deletions
+4
View File
@@ -517,6 +517,7 @@ type DocType {
mode: PublicDocMode!
permissions: DocPermissions!
public: Boolean!
title: String
updatedAt: DateTime
workspaceId: String!
}
@@ -2062,6 +2063,9 @@ type WorkspaceType {
"""quota of workspace"""
quota: WorkspaceQuotaType!
"""Get recently updated docs of a workspace"""
recentlyUpdatedDocs(pagination: PaginationInput!): PaginatedDocType!
"""Role of current signed in user in workspace"""
role: Permission!