refactor: use the unpaginated teamMembers field instead of members

This commit is contained in:
Andrew Bastin
2021-10-22 15:33:11 +05:30
parent ddf21c17d2
commit 3289ede0e8
5 changed files with 7 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ export const updatesDef: GraphCacheUpdaters = {
__typename: "Team",
id: teamID,
},
"members"
"teamMembers"
) as string[]
)
.map((x) => [x, cache.resolve(x, "user") as string])
@@ -66,7 +66,7 @@ export const updatesDef: GraphCacheUpdaters = {
.filter(([_key, uid]) => uid !== userUid)
.map(([key]) => key)
cache.link({ __typename: "Team", id: teamID }, "members", newMembers)
cache.link({ __typename: "Team", id: teamID }, "teamMembers", newMembers)
},
createTeamInvitation: (result, _args, cache, _info) => {
cache.invalidate(