@nestjs/graphql
Version:
Nest - modern, fast, powerful node.js web framework (@graphql)
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);
};
}