"Heard the term GraphQL too many times in the past months but not sure exactly what is that fuss about?! Have some clue about the concepts but never saw it in practice?
Join this presentation to get a quick summary of the motivators, basic concepts of GraphQL and see a quick demo of implementing a GraphQL schema in Ruby"
11. ● That will expose HREFs of the products
● Fetch the product resources
● Every product resource will expose Hrefs to
the product image
/cart/:id
Reusable Endpoints (REST)
27. What is NOT GraphQL?
● Not a database
● Not a library to install
● Not a language specific
28. What is GraphQL?
● A query language
○ Data shapes Not Resources
○ Client specified
● A server specs
○ How a server lexes, parses and executes
a query?
33. Types
● Describes a value in the system
● Built in scalar types
● Custom types
○ Object types
○ Custom scalar types
○ Enum types
○ Interface or Union types
○ List types
49. Project configuration
● Normal rails 5 application
● Add graphql-ruby gem
● rails generate graphql:install
○ Set up a folder structure in
app/graphql/
○ Add schema definition
○ Add a Query type definition
○ Add a route and controller for
executing queries
○ Install graphiql-rails