kriasoft / graphql-starter-kit

💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI.
https://graphqlstart.com
MIT License
3.88k stars 553 forks source link

refactor(api): Move `api/db` to `api/core/db` #329

Closed koistya closed 2 years ago

koistya commented 2 years ago

In order to avoid confusion between the /db folder with migrations and /api/db — Knex client.

// BEFORE
import db, { User } from "../db";
await db.table<User>("user").select();

// AFTER
import { db, User } from "../core";
await db.table<User>("user").select();