Open kyscott18 opened 6 months ago
I proposed a feature request to disable the GraphQL server entirely, but I also this could work for my use case, which would help merge the indexed Ponder data with some other things I'm keeping track of in the database.
With the completion of #370, it becomes possible for Ponder to support custom load-time logic. This would work in parallel or completely replace GraphQL to serve incoming requests. Ponder could completely internalize a web server, and define its own api for serving requests:
or support any arbitrary framework, which Ponder would be in charge of running. For example,
server/index.ts
could be the default entrypoint, which would contain a file like:The benefits to this solution is supporting maximum flexibility. The environment would not be as sandboxed which would potentially created harder to recover from errors.
Both of these solutions would also allow for queries directly against the db. We need to determine a methodology for supporting a strongly typed ORM.