import { Directive } from 'type-graphql' ; import { field , ID , objectType } from '../../../../' ; @ objectType ( { description : 'Object representing cooking recipe' } ) export class Recipe { @ field ( type => ID ) id : string ; @ field ( ) title : string ; @ Directive ( '@lowercase' ) @ field ( ) lowercaseTitle : string ; }