@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
14 lines • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPipe = isPipe;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
function isPipe(value) {
if (!value) {
return false;
}
if ((0, shared_utils_1.isFunction)(value)) {
return true;
}
return (0, shared_utils_1.isFunction)(value.transform);
}
//# sourceMappingURL=is-pipe.util.js.map