Feat/5870 list all comments (#6081)

This commit is contained in:
Pranav Joglekar
2023-11-18 05:54:26 +05:30
committed by GitHub
parent 5c03908529
commit 750c324b1a
5 changed files with 215 additions and 12 deletions

View File

@@ -57,7 +57,8 @@ export type CommentsDeleteReq = z.infer<typeof CommentsDeleteSchema>;
export const CollectionsListSchema = BaseSchema.extend({
body: CollectionsSortParamsSchema.extend({
/** Id of a document to list comments for */
documentId: z.string(),
documentId: z.string().optional(),
collectionId: z.string().uuid().optional(),
}),
});