| 103 | }); |
| 104 | |
| 105 | @ObjectType({description: 'Book'}) |
| 106 | class Book { |
| 107 | @Field(type => ID) |
| 108 | id: string; |
| 109 | |
| 110 | @Field() |
| 111 | title: string; |
| 112 | |
| 113 | @Field(type => Int) |
| 114 | protected numberInCollection: number; |
| 115 | } |
| 116 | |
| 117 | class BookService { |
| 118 | static books: Record<string, Book> = { |