inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
438 stars 43 forks source link

Improve middleware docs #510

Open burakcan opened 8 months ago

burakcan commented 8 months ago

Hello. I've started using Inngest and reading through the documents, I've noticed that it doesn't explain "why" we need middlewares in certain situations. For example I've tried using prisma with middleware or directly in a function, they both work. But I couldn't find what is the functional difference between the two. Adding some explanation to the relevant section of the documentation would be nice,

linear[bot] commented 8 months ago

INN-2856 Improve middleware docs