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

think-mongo连接replica set和使用事务 #1487

Open
donrichnx opened this issue Apr 29, 2020 · 1 comment
Open

think-mongo连接replica set和使用事务 #1487

donrichnx opened this issue Apr 29, 2020 · 1 comment

Comments

@donrichnx
Copy link

DESC

think-mongo怎么连接replica set和使用事务?要用到mongoose吗?

ENV

OS Platform:

Node.js Version:

ThinkJS Version:

code

// your code here

error message

// your error message here

more description

// your detail description

@lizheming
Copy link
Contributor

lizheming commented Apr 29, 2020

https://thinkjs.org/zh-cn/doc/3.0/mongo.html#toc-206 直接搜 replicaSet
事务的话我搜了下 think-mongo 目前应该还不支持,可以试试使用 think-mongoose https://github.com/thinkjs/think-mongoose ,mongoose 应该是支持事务的。

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