Skip to content

lynas/spring-graphql-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-graphql-kotlin

  • Run application with following command
./gradlew bootRun
  • Graphql endpoint
http://localhost:8080/graphql
  • Sample graphql query
query {
    recentPosts(count: 1, offset: 1) {
        id
        text
    }
}

query {
    recentPosts(count: 1, offset: 1) {
        id
        text
        author{
            id
            name
        }
    }
}


query {
    authors {
        id
        name
        thumbnail
    }
}

query {
    authors {
        id
        name
        thumbnail
        posts{
            id
            text
        }
    }
}

  • Input for mutation
mutation {
    author(
        operation:"insert",
        authorInput: {
            name: "Max",
            thumbnail: "TM1"
        }
    ){
        id
        name
        thumbnail
    }
}

About

GraphQL application with spring boot and kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages