@ryancwalsh as @KrisCoulson noted
but it seems you are having some trouble with cells
Let’s take a step back and look at how “Redwood is Organized”
Redwood places both the frontend and backend code in a single monorepo.
/web
contains the frontend and is served as static files through a CDN (and automatically code-split for you).
/api
contains the backend serverless functions (a GraphQL API by default) that your frontend will call when it needs some dynamic data.
The “dotted line” is important here because your question of
tries to cross that line … but the only thing here that can cross the line are the blue arrows on the Client end.
But they can only cross it via the GraphQL API (or a HTTP fetch on function, but since we’re talking cells here, we can ignore this for simplicity).
So - " how to call Prisma functions from the front-end outside of a component" … is you don’t directly.
A cell calls a GraphQL API Query that in turn uses Prisma to query a database.
As I said in my prior post, if you want to persist the “scraped data”, you’d do that in a service.