UNPKG

@ptc-org/nestjs-query-graphql

Version:
9 lines (8 loc) 560 B
import { Class, QueryService } from '@ptc-org/nestjs-query-core'; import { BaseResolverOptions } from '../../decorators/resolver-method.decorator'; import { ServiceResolver } from '../resolver.interface'; export interface RelatableOpts extends BaseResolverOptions { enableTotalCount?: boolean; enableAggregate?: boolean; } export declare const Relatable: <DTO, QS extends QueryService<DTO, unknown, unknown> = QueryService<DTO, unknown, unknown>>(DTOClass: Class<DTO>, opts: RelatableOpts) => <B extends Class<ServiceResolver<DTO, QS>>>(Base: B) => B;