Open History to see the last commit
1/** The task functions and row type that the backend oracle and its fixed tests share. */
2import { makeFunctionReference } from 'convex/server'
3import type { Value } from 'convex/values'
4
5export type Task = {
6 _id: string
7 _creationTime: number
8 clientId: string
9 text: string
10 rank: number
11 payload?: Value
12}
13export const seed = makeFunctionReference<`mutation`, { count: number }, null>(
14 `tasks:seed`,
15)
16export const all = makeFunctionReference<`query`, {}, Array<Task>>(`tasks:all`)