A complete example for this lib please #218
-
|
I am OK with the docs but TBH it is so hard to connect to this lib for me and I was hopping to see a fully functional NestJS app using different features of this lib but unfortunately I could not find one. At least not one that uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You are very right, I am still putting off creating examples, but this library is getting pretty feature-rich, so they're definitely needed. As for unit/integration tests - there's a lot of tests within the codebase, feel free to browse through files ending with |
Beta Was this translation helpful? Give feedback.
I'll take a closer look later, but
@UseClsis essentially just a syntactic sugar overClsService#run.Whatever gets returned from the function passed to
rungets also returned into the call site ofrun.is equivalent to
However, you should keep in mind tha the
@UseClsdecorator is meant to be used as the entry point to the context, and the context should be set up as early as possible. You can't really pass variables to@UseCls, it can only read …