UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

43 lines (42 loc) • 1.37 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 UseFieldMiddleware(...middleware) { return (target, propertyKey) => { }; } export function dummyFn() { return; } export const createUnionType = dummyFn; export const registerEnumType = dummyFn;