@nestjs/graphql
Version:
Nest - modern, fast, powerful node.js web framework (@graphql)
11 lines (10 loc) • 327 B
JavaScript
import { isObject, isString } from '@nestjs/common/utils/shared.utils.js';
export function getPathForAutoSchemaFile(autoSchemaFile) {
if (isString(autoSchemaFile)) {
return autoSchemaFile;
}
if (isObject(autoSchemaFile) && autoSchemaFile.path) {
return autoSchemaFile.path;
}
return null;
}