Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

backend-support.ts

16 lines494 Bytes

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
13export const seed = makeFunctionReference<`mutation`, { count: number }, null>(
14 `tasks:seed`,
16export const all = makeFunctionReference<`query`, {}, Array<Task>>(`tasks:all`)