Comments (4)
I guess we should make the transform callback aware so that we not only
transform(req, res);
but
transform(req, res, function(err, transformedObj) {
//...
});
This would not require transform
to manipulate the body and transform
itself could use some async functions. This could be solved in code like other functionality that uses async
to handle these functions.
Thoughts?
from restify-mongoose.
Oops, I though I responded. I think something like beforeSave
would be more appropriate. Otherwise, yes, making it part of the async.waterfall makes a lot of sense.
from restify-mongoose.
See Pull Request #10
from restify-mongoose.
I'm going to re-open until the pull request is accepted.
from restify-mongoose.
Related Issues (20)
- "serve should create note" is incorrect [Bug] HOT 1
- Multiple Select Params? HOT 2
- compatibility with http://jsonapi.org/format/ HOT 1
- Support for hypermedia/HATEOAS HOT 3
- Add script for github and npm release HOT 4
- beforeSave method is not documented
- NPM Release of v0.2.6 HOT 2
- options is not work in the detail function
- sort and select as options in query configurations
- self.options.filter is wrong HOT 1
- Page size 100 limit ? HOT 2
- A way to automate mongoose model methods mapping
- Feature Request: Implement the options.filter with support for async/promises
- Documentation request: auth and access control
- Content-Type for json-api outputFormat
- remove() uses res.send() method instead of sendData()
- remove parseCommaParam function in populate
- Chaining [Discussion] HOT 4
- Projections are not documented HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restify-mongoose.