import { schema } from 'nexus' ; schema . objectType ( { name : 'Tag' , definition ( t ) { t . model . id ( ) ; t . field ( 'label' , { type : 'String' , resolve ( parent ) { return parent . label ; } , } ) ; } , } ) ;