camo icon indicating copy to clipboard operation
camo copied to clipboard

Chaining of hooks is missing

Open rajeev-kumar-sharma opened this issue 9 years ago • 1 comments

Hi,

Chaining of hooks should be there. Also decorator should be used instead of naming i.e( preDelete () ), we should have @preDelete, same can be done for collection-name, entity-name rather than constructor.

camo is realy a cool stuff and I am licking forward use of decorator in this.

rajeev-kumar-sharma avatar Apr 20 '16 09:04 rajeev-kumar-sharma

Thanks for the suggestion!

Can you give me an example as to what you're expecting for chaining hooks?

Also, as great as decorators would be for Camo, they aren't supported in Node without the use of a transpiler. I don't think it makes sense to include experimental ES7 features in Camo. You could probably still use features like decorators by adding them to a base class yourself.

scottwrobinson avatar May 04 '16 20:05 scottwrobinson