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
- Host: GitHub
- URL: https://github.com/winverse/fastify-graphql-example
- Owner: winverse
- Created: 2021-03-17T05:52:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T07:18:30.000Z (about 4 years ago)
- Last Synced: 2025-02-05T11:49:28.597Z (4 months ago)
- Language: TypeScript
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```