Map existing collection names to Swift schema

I’m trying to add pre-existing collections from MongoDB Atlas to my Realm schema in Swift. The problem I’m encountering is that the existing collection names are snake_cased, and Swift naming conventions are PascalCased, so Realm is creating new collections. How do I setup Realm to recognize the existing collection names (i.e. collection_name) to refer to the Realm object models in Swift (i.e. CollectionName)?

I don’t use Swift so I’m not sure this answer will work. But if your swift schema is the only thing using these collections can you just rename the collections so they are in the correct format?


Thanks for the reply! Unfortunately the pre-existing collections are already in use by other server side processes, which I’d like to avoid modifying if possible.