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
434 stars 42 forks source link

Adding Nest.JS example with dependecy injection #380

Closed anasabdullahysfzai closed 1 year ago

anasabdullahysfzai commented 1 year ago

Is your feature request related to a problem? Please describe. Recently i was configuring inngest with Nest.js and all things went well until i wanted to inject a dependency inside inngest function. After searching on internet , i didnt find any solution for this problem.

Describe the solution you'd like I came up with my own solution to inject dependencies inside the function. Now i want to add it as part of examples within the repositories so that its easy for people to get the direction in future.

jpwilliams commented 1 year ago

Hi, @anasabdullahysfzai 👋

This would be great to add as an example here! We have inngest/sdk-example-nestjs but it's a little outdated now.

Would love a PR to add this - there's a section to help create examples in this repo's CONTRIBUTING.md.

anasabdullahysfzai commented 1 year ago

hey @jpwilliams I would create the PR , thanks

jpwilliams commented 1 year ago

Created and merged in #387. Thanks, @anasabdullahysfzai!