Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import { ObjectType, Field, ID } from 'type-graphql';
  2.  
  3. @ObjectType()
  4. export class Chat {
  5.  
  6. @Field(type => ID)
  7. id: number;
  8.  
  9. @Field()
  10. title: string;
  11.  
  12. @Field({ nullable: true })
  13. description?: string;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement