refactor: extract cache info to separate files and add more mutations

This commit is contained in:
Andrew Bastin
2021-10-06 19:31:16 +05:30
parent f73c8a45d9
commit a5fd39adf8
5 changed files with 268 additions and 86 deletions

View File

@@ -0,0 +1,7 @@
import { KeyingConfig } from "@urql/exchange-graphcache";
export const keyDefs: KeyingConfig = {
User: (data) => (data as any).uid,
TeamMember: (data) => (data as any).membershipID,
Team: (data) => data.id as any,
}