refactor: extract cache info to separate files and add more mutations
This commit is contained in:
7
packages/hoppscotch-app/helpers/backend/caching/keys.ts
Normal file
7
packages/hoppscotch-app/helpers/backend/caching/keys.ts
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user