winverse / fastify-graphql-example

Fastify-graphql sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

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

Running and reverting migrations

You run them using a CLI command:

// run
npx typeorm migrtion: run

// revert
npx typeorm migration:revert

About

Fastify-graphql sample


Languages

Language:TypeScript 91.4%Language:JavaScript 8.5%Language:Shell 0.2%