The above code works fine and connects to mongo. but casbin.addPolicy execute and create policy and casbin.getPolicy().
Under usual circumstances, get created data from casbin.getPolicy() but cannot get it. I saw the database and created data inserted.
I don`t know why it does not get data even if inserted into the DB.
version
problem
The above code works fine and connects to mongo. but casbin.addPolicy execute and create policy and casbin.getPolicy(). Under usual circumstances, get created data from casbin.getPolicy() but cannot get it. I saw the database and created data inserted. I don`t know why it does not get data even if inserted into the DB.