package com.sample.resolver import com.coxautodev.graphql.tools.GraphQLQueryResolver import com.sample.type.Book import org.springframework.stereotype.Component @Component class SampleGraphQLQueryResolver : GraphQLQueryResolver { fun getBook(name : String) : Book { val b = Book(123, "タイトル", "俺", 1000); return b; } fun live() : Boolean { return true; } }