MongoClient and Realm schema/rules

Does the mongoClient that can be accessed through a Realm app respect the schema and rules that are defined in Realm? Or is it just a way to access the underlying Atlas cluster and it doesn’t respect the schema and rules? I would like to avoid bringing in graphql for my web project. Thanks!

Hey Keith,

All Realm requests go through the rules/schema engine except for things like triggers and endpoints that you explicitly configure to skip them. As long as you’re using the mongo client included in a Realm SDK (as opposed to a standard MongoDB driver) then you should be good to go!

Perfect. Thank you so much! Is there any way to make the mongoClient more schema aware? Do I need to manually type it in typescript?