i have created custom functions and realm users can CRUD operations according to authorities according to my design in the application. But i reliezed something seems to be a security gap to me. Any realm user can access to all databases mongoclient operations without custom functions.
for example i want users can not access to databases with this functions, i want users can access only using my custom functions
const deneme = async () => {
const mongo = RealmApp.currentUser.mongoClient(“mongodb-atlas”)
const sales = mongo.db(“rapor724_v2”).collection(“sales”)
// const result = await sales.deleteMany({})
const result = await sales.insertMany(kimler)
console.log(“result”,result)
}