UNPKG

@nestjs/graphql

Version:

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

40 lines (39 loc) 1.27 kB
// If the conditional export cannot be leveraged (older bundler, custom setup), // the shim can still be aliased manually, for example with webpack: // resolve: { // see: https://webpack.js.org/configuration/resolve/ // alias: { // @nestjs/graphql: path.resolve(__dirname, "../node_modules/@nestjs/graphql/dist/extra/graphql-model-shim") // } // } export function ArgsType(nameOrOptions, argsTypeOptions) { return (target) => { }; } export function Directive(sdl) { return (target, key) => { }; } export function Extensions(value) { return (target, propertyKey) => { }; } export function Field(typeOrOptions, fieldOptions) { return (prototype, propertyKey, descriptor) => { }; } export function HideField() { return (target, propertyKey) => { }; } export function InputType(nameOrOptions, inputTypeOptions) { return (target) => { }; } export function InterfaceType(nameOrOptions, interfaceOptions) { return (target) => { }; } export function ObjectType(nameOrOptions, objectTypeOptions) { return (target) => { }; } export function Scalar(name, typeFunc) { return (target, key, descriptor) => { }; } export function dummyFn() { return; } export const createUnionType = dummyFn; export const registerEnumType = dummyFn;