INNER CODE UNIT · TypeScript

establishDatabaseConnection

Datlyfe/jira_clone · packages/api/src/index.ts:33

const establishDatabaseConnection = async (): Promise<void> => {
  try {
    await createDatabaseConnection();
  } catch (error) {
    console.log(error);
  }
};

const initExpressGraphql = async () => {
  const schema = await buildSchema({
    resolvers: RESOLVERS,
    validate: { forbidUnknownValues: false },
  }).catch((err) => console.log(err));

  if (!schema) {
    throw new Error("Could not build graphql schema");
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…