3. • GraphQL is a query language for your API
• developed internally by Facebook in 2012( open-sourced in 2015)
• Usually described as alternative for REST API
• GraphQL servers are available for multiple languages, including Haskell,
JavaScript, Python,Ruby, Java, C#, Scala, Go, Elixir, Erlang, PHP, R, and Clojure
9. Operation types
Queries Mutations Subscriptions
Request the data Create/update/delete the data
create and maintain real time
connection to the server,
event- based.
11. GraphQL-ruby generator provides:
• Set up a folder structure in app/graphql/
• Add schema definition
• Add base type classes
• Add a Query type definition
• Add a route and controller for executing queries
• Install graphiql-rails