Files
hoppscotch/packages/hoppscotch-app/helpers/backend/caching/keys.ts
2021-10-10 20:44:18 +05:30

8 lines
222 B
TypeScript

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,
}