Creating a schema for chat application in flutter

Hello, I’m new to mongodb and I was hoping to get some help on my new project. I’m building a chat application(both one to one and group functionalities) with flutter, socket_io and mongodb as the database, any suggestions on how the schema should be like.


Welcome to the MongoDB Community forums!

You can refer to this Building a Mobile Chat App Using Realm – The New and Easier Way | MongoDB article to gain insights into the schema design of the chat application.

Also if you’re starting your MongoDB journey, I would recommend the following resources:

Best regards,