import type { AppContext } from '@voltro/runtime' // Oldest-first so `documents[0]` is stable across clients — the collab page // binds its editor to that first document, and every tab agrees on which one. const execute = (_input: Record, _ctx: AppContext) => ({ descriptor: { table: 'documents' as const, predicate: undefined, order: [{ column: 'createdAt' as const, direction: 'asc' as const }], take: 100, skip: undefined, projection: undefined, }, }) export default execute