"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const entities_1 = require("../../../entities");
exports.datasourceResolver = {
    async datasource(_, { id }, context, info) {
        const repository = typeorm_1.getRepository(entities_1.DataSource);
        return await repository.findOne({ id }, {
            relations: ['publishers']
        });
    }
};
//# sourceMappingURL=datasource.js.map