Chapter 10. Data Modeling Using Dartson

In this chapter, you will set up a MongoModel class that will expose basic CRUD (Create, Read, Update, and Delete) operations to your Mongo database. MongoModel will be your primary interface to the mongo_dart library. It’s here that you’ll implement database connection pooling and other MongoDB helper functionality. Later in this chapter, you’ll be learning how to define an interface for each MongoDB document using a Dart class paired with Dartson for serialization. You will then share your data structures between your client code and server code. By the end of this chapter, you will have a solid understanding of how to handle data storage for your application.

Why Dartson

Although a RESTful system enforces ...

Get Write Web Apps with Dart: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.