UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

11 lines (10 loc) 243 B
import { isFunction } from '@nestjs/common/utils/shared.utils.js'; export function isPipe(value) { if (!value) { return false; } if (isFunction(value)) { return true; } return isFunction(value.transform); }