optimistic.ts 349 B

12345678910111213
  1. import { GraphCacheOptimisticUpdaters } from "../graphql"
  2. export const optimisticDefs: GraphCacheOptimisticUpdaters = {
  3. deleteTeam: () => true,
  4. leaveTeam: () => true,
  5. renameTeam: ({ teamID, newName }) => ({
  6. __typename: "Team",
  7. id: teamID,
  8. name: newName,
  9. }),
  10. removeTeamMember: () => true,
  11. revokeTeamInvitation: () => true,
  12. }