feat: add loading collections stream to team collection adapter

This commit is contained in:
Andrew Bastin
2022-02-04 15:32:52 +05:30
parent cad75e92aa
commit 5aa6bf0d53
2 changed files with 42 additions and 14 deletions

View File

@@ -1,13 +1,3 @@
import { GraphCacheOptimisticUpdaters } from "../graphql"
export const optimisticDefs: GraphCacheOptimisticUpdaters = {
deleteTeam: () => true,
leaveTeam: () => true,
renameTeam: ({ teamID, newName }) => ({
__typename: "Team",
id: teamID,
name: newName,
}),
removeTeamMember: () => true,
revokeTeamInvitation: () => true,
}
export const optimisticDefs: GraphCacheOptimisticUpdaters = {}