UNPKG

@nestjs/graphql

Version:

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

15 lines (14 loc) 535 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPathForAutoSchemaFile = void 0; const shared_utils_1 = require("@nestjs/common/utils/shared.utils"); function getPathForAutoSchemaFile(autoSchemaFile) { if ((0, shared_utils_1.isString)(autoSchemaFile)) { return autoSchemaFile; } if ((0, shared_utils_1.isObject)(autoSchemaFile) && autoSchemaFile.path) { return autoSchemaFile.path; } return null; } exports.getPathForAutoSchemaFile = getPathForAutoSchemaFile;