ORM in Freshdesk Serverless

@Matozinho I spoke too soon. This may be way more complicated than I thought.

The issue seems to be around running prisma command-line tools. Prisma currently has no support to programmatically run migrate or generate commands.

There are no build steps that you can perform as part of app install events that need calling another command because child_process is not allowed in the app sandbox environment.

This means, you will have to introduce a middleware for now at least. Have an HTTP API that uses Prisma to make DB calls, and is hosted externally. Then, communicate with that HTTP API from the Freshdesk app.

2 Likes