UNPKG

@zuu/owl

Version:

Zuu's Experimental GraphQL Implementation

14 lines 734 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getMetadataStorage_1 = require("../metadata/getMetadataStorage"); const handlers_1 = require("../helpers/handlers"); const decorators_1 = require("../helpers/decorators"); function Mutation(returnTypeFuncOrOptions, maybeOptions) { const { options, returnTypeFunc } = decorators_1.getTypeDecoratorParams(returnTypeFuncOrOptions, maybeOptions); return (prototype, methodName) => { const handler = handlers_1.getHandlerInfo(prototype, methodName, returnTypeFunc, options); getMetadataStorage_1.getMetadataStorage().collectMutationHandlerMetadata(handler); }; } exports.Mutation = Mutation; //# sourceMappingURL=Mutation.js.map