import { SetMetadata } from '@nestjs/common' ; import { SCHEMA_TYPE_METADATA } from '../postgraphile.constants' ; import { SchemaTypeOptions } from '../interfaces/schema-type-options.interface' ; export function SchemaType ( options ) { return ( target , key ? , descriptor ? ) => { SetMetadata ( SCHEMA_TYPE_METADATA , options ) ( target , key , descriptor ) ; } ; }