UNPKG

@nestjs/graphql

Version:

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

17 lines (16 loc) 486 B
import { isString } from '@nestjs/common/utils/shared.utils.js'; const defaultOptions = { typeFileNameSuffix: ['.input.ts', '.args.ts', '.entity.ts', '.model.ts'], introspectComments: false, readonly: false, debug: false, }; export const mergePluginOptions = (options = {}) => { if (isString(options.typeFileNameSuffix)) { options.typeFileNameSuffix = [options.typeFileNameSuffix]; } return { ...defaultOptions, ...options, }; };