Skip to content

Interface: ClientMutations

Defined in: packages/react-fate/src/index.tsx:27

Extends

  • GeneratedClientMutations

Properties

comment.add

readonly comment.add: MutationDefinition<Comment, { args?: unknown; content: string; postId: string; select: string[]; }, { author?: { banExpires: string | null; banned: boolean | null; banReason: string | null; createdAt: string; displayUsername: string | null; email: string; emailVerified: boolean; id: string; image: string | null; name: string; password: string | null; role: string; updatedAt: string; username: string | null; } | null; authorId: string | null; content: string; createdAt: string; id: string; post?: { authorId: string; categoryId: string | null; commentCount: number; content: string; createdAt: string; id: string; likes: number; title: string; updatedAt: string; }; postId: string; }>

Defined in: example/client/src/fate.ts:12


comment.delete

readonly comment.delete: MutationDefinition<Comment, { args?: unknown; id: string; select?: string[]; }, { author?: { banExpires: string | null; banned: boolean | null; banReason: string | null; createdAt: string; displayUsername: string | null; email: string; emailVerified: boolean; id: string; image: string | null; name: string; password: string | null; role: string; updatedAt: string; username: string | null; } | null; authorId: string | null; content: string; createdAt: string; id: string; post?: { authorId: string; categoryId: string | null; commentCount: number; content: string; createdAt: string; id: string; likes: number; title: string; updatedAt: string; }; postId: string; }>

Defined in: example/client/src/fate.ts:15


post.add

readonly post.add: MutationDefinition<Post, { args?: unknown; content: string; select: string[]; title: string; }, Post>

Defined in: example/client/src/fate.ts:20


post.like

readonly post.like: MutationDefinition<Post, { args?: unknown; error?: "callSite" | "boundary"; id: string; select: string[]; slow?: boolean; }, Post>

Defined in: example/client/src/fate.ts:21


post.unlike

readonly post.unlike: MutationDefinition<Post, { args?: unknown; id: string; select: string[]; }, Post>

Defined in: example/client/src/fate.ts:22


user.update

readonly user.update: MutationDefinition<User, { args?: unknown; name: string; select: string[]; }, Record<string, unknown>>

Defined in: example/client/src/fate.ts:25

Released under the MIT License