refactor: extract cache info to separate files and add more mutations
This commit is contained in:
committed by
liyasthomas
parent
3809e9853e
commit
8d5bd051a1
@@ -0,0 +1,13 @@
|
||||
import { OptimisticMutationConfig } from "@urql/exchange-graphcache"
|
||||
|
||||
export const optimisticDefs: OptimisticMutationConfig = {
|
||||
deleteTeam: () => true,
|
||||
leaveTeam: () => true,
|
||||
renameTeam: ({ teamID, newName }) => ({
|
||||
__typename: "Team",
|
||||
id: teamID,
|
||||
name: newName,
|
||||
}),
|
||||
removeTeamMember: () => true,
|
||||
// TODO: updateTeamMemberRole
|
||||
}
|
||||
Reference in New Issue
Block a user