GraphQL is much more than an efficient way of fetching data from the client side
Local scalar values
Local complex values or computed values
Local complex values or computed values
GraphQL introspection is a core
- most underrated - feature of the language
Given a GraphQL Schema, generates:
Client
Server
Front-end
Back-end
Client
Server
Back-end
Back-end
API
Indexer
Algolia
Shopify
requests
meta properties
for each product
Shopify REST API rate limiting
Shopify GraphQL API rate limiting
Cost of the query =
1 +
10 x (
1 + 1 + 1 +1
)
= 41 points
"Flexible throttling" indexing system using GraphQL
Went from 2-4 products per second
to 10-50 products per second
Hasura translate GraphQL AST to SQL AST,
providing blazing fast execution with minimum configuration