@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
13 lines (12 loc) • 362 B
JavaScript
import { SetMetadata } from '@nestjs/common';
import { RESOLVER_REFERENCE_METADATA } from '../graphql.constants.js';
/**
* Property reference resolver (method) Decorator.
*
* @publicApi
*/
export function ResolveReference() {
return (target, key, descriptor) => {
SetMetadata(RESOLVER_REFERENCE_METADATA, true)(target, key, descriptor);
};
}