~/talk

Moving beyond REST: GraphQL and Java & Spring

Talkat Spring I/O 2019 · 2019-05-16..05-17· [graphql]
slides:none on file

Argues GraphQL can augment or replace REST by exposing a single schema-backed endpoint that avoids over-fetching and under-fetching. Demonstrates a Spring Boot server (H2 + Spring Data repositories) built two ways: low-level graphql-java and annotation-driven GraphQL SPQR. Shows GraphiQL explorer, runs queries against a Star Wars dataset (count returns 37 starships), performs mutations (adds a car that calls an external Giphy service), and notes pagination and auth still require explicit server work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:35What is Spring
  3. 1:40What is GraphQL
  4. 2:21Learning GraphQL
  5. 2:48API Query Language
  6. 3:13GraphQL
  7. 3:45Silicon Valley
  8. 4:27GraphQL vs REST
  9. 5:47GraphQL Data Sources
  10. 6:10GraphQL Endpoints
  11. 7:22Demo
  12. 8:26GraphQL Schema
  13. 11:50GraphQL Endpoint
  14. 15:16Query Parameters
  15. 16:08Recap
  16. 16:52GraphQL Query
  17. 18:11Antipattern
  18. 18:42What GraphQL enforces
  19. 20:31Avoid callback hell
  20. 20:58Update two unconnected objects
  21. 21:28GraphQL is faster than REST
  22. 22:57Removing fields
  23. 24:29Adding fields
  24. 25:03Explicit fields
  25. 25:15Magic in REST
  26. 25:33More concrete
  27. 26:05GraphQL fragment example
  28. 26:56GraphQL libraries
  29. 27:17GraphQL SPQR
  30. 27:35Data can be anything
  31. 28:00Wrap anything you want
  32. 32:21Why use Spring
  33. 32:56GraphQL Speaker
  34. 35:17Testing
  35. 35:49GraphQL Query Name
  36. 36:06Autogenerated GraphQL schema
  37. 36:35GraphQL docs
  38. 36:54Additional stuff
  39. 41:00Double Check
  40. 41:13Cool
  41. 41:34Flexibility
  42. 42:38GraphQL Controller
  43. 45:12Spring Command Line
  44. 45:45Slides
  45. 47:10Mutations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.