0.1.7 • Published 3 years ago

east-mongoose v0.1.7

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

East Mongoose

This is a Mongoose adapter for the East database migration tool. It has been influenced by the East mongo adapter. This adapter is written and currently targets typescript projects.

Migrations receive an object with the following properties:

There are also some Typescript migration templates which are not transpiled.

Installation

yarn add east-mongoose

Usage

Typescript migration

import { Connection } from "mongoose";
export const tags = [];
export const migrate = async ({ db }: { db: Connection }): Promise<void> => {
  return Promise.resolve();
};

exports.rollback = async ({ db }: { db: Connection }): Promise<void> => {
  return Promise.resolve();
};

Licence

MIT

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago