Slide 20
Slide 20 text
TypeとFieldの定義
data class Book(
val id: ID,
val title: String,
val price: Int,
val genre: BookGenre,
val releasedAt: OffsetDateTime
)
enum class BookGenre {
TECHNICAL,
BUSINESS,
NOVEL,
COMIC,
MAGAZINE
}
type Book {
id: ID!
title: String!
price: Int!
genre: BookGenre!
releasedAt: DateTime!
}
enum BookGenre {
TECHNICAL
BUSINESS
NOVEL
COMIC
MAGAZINE
}