Files
hoppscotch/packages/hoppscotch-app/helpers/backend/caching/keys.ts
2021-11-02 19:17:09 +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,
}