MCPcopy Create free account
hub / github.com/Urigo/graphql-cli / createDB

Function createDB

templates/fullstack/server/src/db.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * For production use please use different source of the configuration
19 */
20export const createDB = async () => {
21 const dbmigrations = await getConfig();
22 // connect to db
23 const db = Knex(dbmigrations);
24
25 return db as any;
26};

Callers 1

createApolloServerFunction · 0.90

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…