Class: Agoo::Graphql
- Inherits:
-
Object
- Object
- Agoo::Graphql
- Defined in:
- ext/agoo/rgraphql.c
Overview
The Agoo::GraphQL class provides support for the GraphQL API as defined in facebook.github.io/graphql/June2018. The approach taken supporting GraphQL with Ruby is to keep the integration as simple as possible. With that in mind there are not new languages or syntax to learn. GraphQL types are defined with SDL which is the language used in the specification. Ruby, is well, just Ruby. A GraphQL type is assigned a Ruby class that implements that type. Thats it. A GraphQL directive or a Ruby method is used to create this association. After that the Agoo server does the work and calls the Ruby object methods as needed to satisfy the GraphQL queries.