An open API service indexing awesome lists of open source software.

https://github.com/winverse/fastify-graphql-example

Fastify-graphql sample
https://github.com/winverse/fastify-graphql-example

Last synced: about 2 months ago
JSON representation

Fastify-graphql sample

Awesome Lists containing this project

README

        

# Fastify-graphql

Steps to run this project:

1. Run `yarn` command
2. Setup database settings inside `ormconfig.json` file
3. Run `yarn dev` command

# Typeorm

## migration

### Create new migraion

You can create a new migration using CLI:

```json
// create migration
npx typeorm migration:create -n PostRefactoring
```

### Running and reverting migrations

You run them using a CLI command:

```json
// run
npx typeorm migrtion: run

// revert
npx typeorm migration:revert
```