You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/querying-with-graphql.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,13 @@ components](/docs/building-with-components/) to declare what data they and their
19
19
sub-components need. Then, Gatsby makes that data available in
20
20
the browser when needed by your components.
21
21
22
+
## Why is GraphQL so cool?
23
+
24
+
* Eliminate frontend data boilerplate — no need to worry about requesting & waiting for data. Just ask for the data you need with a GraphQL query and it'll show up when you need it
25
+
* Push frontend complexity into queries — many data transformations can be done at *build-time* within your GraphQL queries
26
+
* It's the perfect data querying language for the often complex/nested data dependencies of modern applications
27
+
* Improve performance by removing data bloat — GraphQL is a big part of why Gatsby is so fast as it enables lazy-loading the exact data in the exact form each view needs
28
+
22
29
## What does a GraphQL query look like?
23
30
24
31
GraphQL lets you ask for the exact data you need. Queries look like JSON:
0 commit comments