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

how to transaction #40

Open
kahirokunn opened this issue Dec 2, 2018 · 2 comments
Open

how to transaction #40

kahirokunn opened this issue Dec 2, 2018 · 2 comments

Comments

@kahirokunn
Copy link
Contributor

https://firebase.google.com/docs/firestore/solutions/counters?hl=ja
分散カウンタみたいなのをやりたいのですが、trasactionが必要になりました。
transactionは実装されてますでしょうか?(´;ω;`)

@1amageek
Copy link
Owner

1amageek commented Dec 4, 2018

@k-okina こちらを参考ください!
https://github.com/1amageek/tradable.ts/tree/master/src

@kahirokunn
Copy link
Contributor Author

なるほど!こんな感じでtransactionにpringでインスタンス化したmodelのdocをセットすれば良いんですね!
https://github.com/1amageek/tradable.ts/blob/master/src/balanceManager.ts

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

No branches or pull requests

2 participants