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

Created QueryBuilder.set method #394

Merged
merged 4 commits into from Mar 20, 2018

Conversation

2 participants
@calebkleveter
Copy link
Member

calebkleveter commented Mar 2, 2018

This PR adds a .set(_:to:) method to the QueryBuilder type, allowing you to run SET queries on a model.

Example:

Player.query(on: request).filter(\.points == 10_000).set(\.rank, to: 10)

calebkleveter added some commits Mar 2, 2018

@tanner0101 tanner0101 added this to the 3.0.0-rc.2 milestone Mar 7, 2018

@tanner0101 tanner0101 self-assigned this Mar 7, 2018

@tanner0101 tanner0101 merged commit 7a7796d into vapor:master Mar 20, 2018

1 check passed

ci/circleci: linux Your tests passed on CircleCI!
Details
@tanner0101

This comment has been minimized.

Copy link
Member

tanner0101 commented Mar 20, 2018

thanks @calebkleveter :)

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