Timeout error while syncronizing data

Getting timeout on ios when the schema is created from nodejs based on previous database details, using the schema details provided in the SDK section for swift.
On the other it is working fine when the schema is created automatically based on the models from app side.
What could be done to handle such scenario? We have a legacy db on Realm and are migrating it to RealmMongodb