GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-kotlin
/
sample-spring-graphql1
Browse code
Refactor
master
1 parent
0c34fe1
commit
0e58730ae6733bf8c6b1cda2763dee6f740fbc8d
yhornisse
authored
on 16 May 2020
Patch
Showing
1 changed file
src/main/kotlin/com/sample/resolver/SampleGraphQLQueryResolver.kt
Ignore Space
Show notes
View
src/main/kotlin/com/sample/resolver/SampleGraphQLQueryResolver.kt
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 = Book(id = 123, name = "タイトル", author = "俺", value = 1000); fun live() : Boolean = true }
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; } }
Show line notes below