feat: gql codegen + caching + optimistic
This commit is contained in:
committed by
liyasthomas
parent
2325982801
commit
d6324e6ba6
14
packages/hoppscotch-app/helpers/backend/caching/resolvers.ts
Normal file
14
packages/hoppscotch-app/helpers/backend/caching/resolvers.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ResolverConfig } from "@urql/exchange-graphcache"
|
||||
|
||||
export const resolversDef: ResolverConfig = {
|
||||
Query: {
|
||||
team: (_parent, { teamID }, _cache, _info) => ({
|
||||
__typename: "Team",
|
||||
id: teamID as any,
|
||||
}),
|
||||
user: (_parent, { uid }, _cache, _info) => ({
|
||||
__typename: "User",
|
||||
uid: uid as any,
|
||||
}),
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user