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

Update Model.buildQuery to accept options. #29

Merged
merged 1 commit into from Apr 28, 2016

Conversation

Projects
None yet
2 participants
@burrows
Copy link
Member

burrows commented Apr 28, 2016

This PR updates the Model.buildQuery method to take in an options object. That object is then forwarded on to the mapper when the #query method is called. If the #query method also receives an options object, it is merged with the options passed to buildQuery. This lets you setup a complicated query with options once, an then re-fetch it over and over by simply calling query with no arguments.

@alexraginskiy

This comment has been minimized.

Copy link
Contributor

alexraginskiy commented Apr 28, 2016

👍

@burrows burrows merged commit 1eb61e0 into master Apr 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment