fetchOrg.ts 270 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 import { Context } from "../"; import Org from "entity/Org"; export default async (root: {}, { id }, context: Context) => { const { connection } = context; const orgRepo = connection.getRepository(Org); const org = await orgRepo.findOneById(id); return org; };