resolvers.ts 557 B

12345678910111213141516171819202122
  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. shortcode: (_parent, args, _cache, _info) => ({
  17. __typename: "Shortcode",
  18. id: args.code,
  19. }),
  20. },
  21. }