balderdashy / balderdashy/sails
Callback function afterFetch or Equivalent
Open
helpful info or workaround
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
sails version : `1.2.4`
Is there a way I can call a function on a model after fetching a record?
### Tried Approaches.
tried adding `customToJSON` to my model configuration but it has not worked.
#### Is there a callback function equivalent to `afterFetch` ?
Contributor guide
Research direction
Start by reviewing the Sails 1.2.4 model lifecycle documentation and relevant model-fetching behavior. Determine whether an after-fetch callback is supported or what equivalent is expected, then define and verify the intended callback timing and behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100