Underscore for custom methods in feathers^5 #2304
fratzinger
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Are those methods that should be accessed externally? For custom methods you can basically use any name other than the standard service methods but the signature will always be |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey :)
Will custom methods from feathers^5 also support underscore-functions which will skip the hooks entirely? Like the methods in adapter-commons:
_find
that gets called automatically byservice('posts').find()
call? As I start to integrate the custom methods to my libraries in preparation of v5 I wondered if I should start all my methods with underscore. For example forfeathers-authentication-management
:_checkUnique(...)
etc.The ability to skip hooks with
_find
,_get
, ... comes in pretty handy sometimes. so that would be nice to have for custom methods right out of the box.What's your opinion on that, David? Thanks in advance for your thoughts! As always I cannot tell you enough, how I appreciate the effort you put into making this framework!
Beta Was this translation helpful? Give feedback.
All reactions