"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScrapingMutation = void 0;
const tslib_1 = require("tslib");
const type_graphql_1 = require("type-graphql");
const shell_1 = require("@things-factory/shell");
let ScrapingMutation = class ScrapingMutation {
    async scraping(context) {
        const { tx } = context.state;
        return true;
    }
};
exports.ScrapingMutation = ScrapingMutation;
tslib_1.__decorate([
    (0, type_graphql_1.Directive)('@transaction'),
    (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To scraping data' }),
    tslib_1.__param(0, (0, type_graphql_1.Ctx)()),
    tslib_1.__metadata("design:type", Function),
    tslib_1.__metadata("design:paramtypes", [Object]),
    tslib_1.__metadata("design:returntype", Promise)
], ScrapingMutation.prototype, "scraping", null);
exports.ScrapingMutation = ScrapingMutation = tslib_1.__decorate([
    (0, type_graphql_1.Resolver)(shell_1.Domain)
], ScrapingMutation);
//# sourceMappingURL=scraping-mutation.js.map