Installation
Getting Esix up and running is simple! Just add the package using your favorite package manager: Using Yarn:Note: You’ll need bothesixandmongodbpackages to get started.
Creating Your First Model
Let’s start by defining your first model. Here’s how you can create a simpleBook model:
BaseModel automatically provides id and timestamp fields (createdAt and updatedAt), so you don’t have to worry about those.
Creating Records
Now you’re ready to create some data! Here’s how you can add books to your database:Querying Your Data
Once you have some data, querying is just as simple! Here’s how you can retrieve books:What’s Next?
Congratulations! You’ve just created your first Esix model and learned the basics of creating and querying data. Here are some next steps to explore:- Configuration - Learn how to configure your database connection
- Defining Models - Discover advanced model features and relationships
- Retrieving Models - Master complex queries and aggregations