GraphQL
a brief, high level, 10,000ft drive by of
something new and shiny
with Mark Dewey
Core Instructor
Suncoast Developers Guild
How did we get here?
REST
I could use some
- REST is still useful but its not perfect
- rigid, but with good reason
- returns everything we need
- implementation agnostic
RESTful API for school
GET /students/:id
{
name:{
first:"Billy",
last:"Jean"
},
contact: {...},
dateOfBirth: 1988-12-12,
address: {...},
currentCourseIds: [3,5,6,8,9,10],
enrollmentDate: 2016-06-03,
hasPaid: true,
GPA: 3.8,
targetGraduation: 2019,
advisorId: 23,
dormAssignment:{...}
}
Radical Idea:
What if we could only get what we asked for and return multiple resources, but only when asked?
GraphQL
I heard it was cool 😎
- A Query Language for your API
- Get only what you ask for
- Strongly Typed
- "Replace" REST
Lets see "it" in action
Thanks!
Questions?
Final thoughts?
Wanna learn to code with me?
mark@suncoast.io
@juggler2009
suncoast.io
GraphQL
By Mark Dewey
GraphQL
- 356