Is it possible to has a collection not syncable in a flexible sync realm?


I have several sync collections in a realm that is configured with flexible sync. I would like to add to the schema a collection that is local only and will never be uploaded by atlas services.

Is there a way to do it in Realm js (react-native)?

You can have collections in MongoDB that are not synced, but if you want to have specific tables in a realm that are not synced that is not possible at the moment given that the realm is opened as either synced or local.

That being said, we have many developers that just have a local realm and a synced realm within their application and that works well for them.

Let us know if that works for you or if that causes issues on your end (though it should be simple and performant).


Thanks Tyler,

in case of using 2 realms I will not be able to use relations/query using a single query right?

That is correct, yes.