-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single object queries to use include and keys #1280
Conversation
Current coverage is
|
This code looks good, but would you mind added a test case for it? In |
Yeah, I will ASAP. |
Added the test cases. |
return rest.find(req.config, req.auth, req.params.className, {objectId: req.params.objectId}) | ||
let body = Object.assign(req.body, ClassesRouter.JSONFromQuery(req.query)); | ||
let options = {}; | ||
let allowConstraints = ['keys', 'include']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move that up as a const ALLOWED_GET_QUERY_KEYS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@jeremyjackson89 updated the pull request. |
@jeremyjackson89 updated the pull request. |
@drew-gross @flovilmart when will this be released to the npm package? Thanks |
Allow queries on specific objects to use the include and keys query parameters.