resolvers.ts 445 B

123456789101112131415161718
  1. import { GraphCacheResolvers } from "../graphql"
  2. export const resolversDef: GraphCacheResolvers = {
  3. Query: {
  4. team: (_parent, { teamID }, _cache, _info) => ({
  5. __typename: "Team",
  6. id: teamID,
  7. }),
  8. user: (_parent, { uid }, _cache, _info) => ({
  9. __typename: "User",
  10. uid,
  11. }),
  12. teamInvitation: (_parent, args, _cache, _info) => ({
  13. __typename: "TeamInvitation",
  14. id: args.inviteID,
  15. }),
  16. },
  17. }