Skip to content
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

Add ability to insert, update and delete using QueryBuilder #564

Open
hos opened this issue Nov 13, 2019 · 1 comment
Open

Add ability to insert, update and delete using QueryBuilder #564

hos opened this issue Nov 13, 2019 · 1 comment

Comments

@hos
Copy link

hos commented Nov 13, 2019

In some cases it may be useful to have an option to append another query to automatically generated one. For example when I want to set update_at on update mutation. In this case I think it will be nice to wrap the main resolver and add query which will be executed with the main one. In this case queryBuilder.update will be useful.

Another case which I can think of now, creating journal of changes for example

user 6 created resource 23 (json payload of data)
user 4 updated resource 40 (json payload of changes)

In this case queryBuilder.insert will be useful.

@benjie benjie changed the title Add ability to insert, update and delete using queryBuilder Add ability to insert, update and delete using QueryBuilder Nov 13, 2019
@benjie
Copy link
Member

benjie commented Nov 13, 2019

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

No branches or pull requests

2 participants