Closed shubhanshusingh closed 1 year ago
@nodece @Zxilly @Shivansh-yadav13
@shubhanshusingh don't understand your question. What are you doing, what to expect and what you see?
I have one mongo db instance where I have multiple databases.[]
(url)
Now I wish to connect to each db via mongoose casbin adapter? how can I do it? For each db the enforcer would be different.
@hsluoyz
Let me fix this issue.
@nodece appreciate it! it's a much need requirement for my application.
@shubhanshusingh See #68
I tested that build @nodece working perfectly, waiting for PR to be merged. Life saver!
I have multiple databases in single mongo instance. I wish to create multiple adapter and enforcer for each database in order to direct Casbin rules CRUD operations to databases. How can I do it?
Above code is updating policies to same database which is initialised first i.e. baymax-prod. Adapter1 and Enforcer1 are saving policies to baymax-prod database instead of baymax-stage database.
can someone help?