Thinking about patterns for services, GraphQL, Apollo, cells, etc

I got the back-end caching working a few days ago using Prisma directly instead of involving Apollo: https://github.com/ryancwalsh/VoteQuickly/commit/111364193c0c75858dd465d9df3507c3c67231ed

I’m still exploring how to solve my second question above in Thinking about patterns for services, GraphQL, Apollo, cells, etc : how to call Prisma functions from the front-end outside of a component (such as at https://github.com/ryancwalsh/VoteQuickly/blob/b099148/web/src/components/Map.ts#L64, which gets called from the Success function of the main ScraperCell ).

Also posted at https://stackoverflow.com/q/64469000/470749

If anyone here has any ideas, I’d love to hear.