-
Notifications
You must be signed in to change notification settings - Fork 4
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
transactions | question #2
Comments
thanks with unstar |
Hi @seeden We are using transactions just like in objection, by passing the Model Class to the A.js:
B.js
transaction.js
To counter this use And when querying other models, either pass the in B.js:
Another problem was that an instance of the extended transaction class when returned from the transaction will no longer be an instance but a simple object, so you'll have to do We are still figuring out how best to use transactions, if you have any other use cases or suggestions we'd be glad to discuss them. |
Hi I am thinking about your library because I want to switch from bookshelfjs to objectionsjs.
Currently I am using transactions and DataLoader as well.
Can you describe how are you using your library with transactions?
Are you extending all models for each request?
Thank you for response.
The text was updated successfully, but these errors were encountered: