"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EvaluationStatusQuery = void 0;
const tslib_1 = require("tslib");
require("@things-factory/auth-base"); /* for Resolver Context */
const type_graphql_1 = require("type-graphql");
const shell_1 = require("@things-factory/shell");
const evaluation_status_1 = require("./evaluation-status");
let EvaluationStatusQuery = class EvaluationStatusQuery {
    async evaluationStatus(id, context) {
        return await (0, shell_1.getRepository)(evaluation_status_1.EvaluationStatus).findOne({
            where: { id }
        });
    }
};
exports.EvaluationStatusQuery = EvaluationStatusQuery;
tslib_1.__decorate([
    (0, type_graphql_1.Query)(returns => evaluation_status_1.EvaluationStatus, { nullable: true, description: 'To fetch a EvaluationStatus' }),
    tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
    tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
    tslib_1.__metadata("design:type", Function),
    tslib_1.__metadata("design:paramtypes", [String, Object]),
    tslib_1.__metadata("design:returntype", Promise)
], EvaluationStatusQuery.prototype, "evaluationStatus", null);
exports.EvaluationStatusQuery = EvaluationStatusQuery = tslib_1.__decorate([
    (0, type_graphql_1.Resolver)(evaluation_status_1.EvaluationStatus)
], EvaluationStatusQuery);
//# sourceMappingURL=evaluation-status-query.js.map