1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Scalar = void 0;
|
4 | const common_1 = require("@nestjs/common");
|
5 | const graphql_constants_1 = require("../graphql.constants");
|
6 |
|
7 |
|
8 |
|
9 | function Scalar(name, typeFunc) {
|
10 | return (target, key, descriptor) => {
|
11 | (0, common_1.SetMetadata)(graphql_constants_1.SCALAR_NAME_METADATA, name)(target, key, descriptor);
|
12 | (0, common_1.SetMetadata)(graphql_constants_1.SCALAR_TYPE_METADATA, typeFunc)(target, key, descriptor);
|
13 | };
|
14 | }
|
15 | exports.Scalar = Scalar;
|