juicycleff / casbin-mongodb-adapter

Pure MongoDB adapter for Casbin
MIT License
9 stars 14 forks source link

How to fix Error: cannot to save policy, the adapter does not implement the BatchAdapter #12

Closed Casa-Cloud closed 3 years ago

Casa-Cloud commented 3 years ago

Hello,

I am using following casbin and driver version "casbin": "5.7.1" "casbin-mongodb-adapter": "1.2.0"

I am trying to use batch method - addNamedPolicies('p', permissions); I am getting following error while using this method

Error: cannot to save policy, the adapter does not implement the BatchAdapter

Can you please help me fix all the batch processing methods like addNamedPolicies(), RemoveNamedGroupingPolicies() issue in the adapter.