3.2.1 • Published 2 years ago

esix v3.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

Logo

A really slick ORM for MongoDB.

Inspired by ActiveRecord and Eloquent, Esix is a great way to work with your database in TypeScript. 🥧

Esix uses a Convention over Configuration approach where you define your models as normal TypeScript classes and minimal boilerplate.

Getting Started

yarn add esix mongodb

Define a model.

import { BaseModel } from 'esix';

class Post extends BaseModel {
  public title = '';
  public text = '';
}

Then you can query the database for your models.

async function postsHandler(request: Request, response: Response): Promise<void> {
  const posts = await Post.all();

  response.json({ posts });
}

async function postHandler(request: Request, response: Response): Promise<void> {
  const post = await Post.find(request.params.id);

  response.json({ post });
}

You can read more about how to use Esix at the docuementation site https://esix.netlify.app/.

3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.7.0

4 years ago

2.0.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago