learn-graphql-kotlin-spring-server

getting started with graphql spring-webflux (expedia: graphql-kotlin-spring-server)

docs

based on: https://www.reddit.com/r/Kotlin/comments/hzzleu/bootiful_graphql_with_kotlin/

see:

note

  • requires spring webflux. (does not work with webmvc)

play

query {
  conference {
    name
    location
  }
  people(nameStartsWith:"D") {
    name
    ... on Speaker {
      talks
    }
    ... on Attendee {
      ticketType
    }
  }
}
query {
  schedule {
    greeting
  }
}
# simulate slow query to downstream service that provides "talks"
query {
  s1: schedule {
    greeting
    talks
  }
  s2: schedule {
    greeting
    talks
  }
}