-
Notifications
You must be signed in to change notification settings - Fork 49
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
Please add an example of how to use transaction #81
Comments
Hi @devashishsethia, thanks for the feedback. I've added some more info and link on the subject here. A full example is available here. |
Thank you so much! Got it working with your help. I've created a set of simple feathers hooks that can be added to the project or docs, if you would like (startTransaction() method mentioned in the objection docs didn't work for me). Couldn't create a pull request.
|
If you have configured knex using app.set('knex', knex) in objection.js (If you used feathers-cli, that should be the case), you can also start the transaction without using Model like so:
|
This should definitely be in the docs. |
Hi,
Thanks for your awesome work!
This is not an issue per se, but I haven't been able to get my head around how to use transactions. Since transactions are required in any real life project, a simple example in the docs could help us a lot.
Thanks in advance.
The text was updated successfully, but these errors were encountered: