Graphql: Difference between revisions

From wikinotes
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
GraphQL is an alternative to REST APIs that enables you to query exactly what you need using a single HTTP request, rather than several.
GraphQL is an alternative to REST APIs that enables you to query exactly what you need using a single HTTP request, rather than several.
{{ TODO |
These notes are bad. host, validate, and reorganize
}}


= Documentation =
= Documentation =
Line 9: Line 5:
{| class="wikitable"
{| class="wikitable"
|-
|-
| docs || https://graphql.org/learn/
| official docs || https://graphql.org/learn/
|-
|-
| introspection docs || https://graphql.org/learn/introspection/
| introspection docs || https://graphql.org/learn/introspection/
Line 51: Line 47:
|-
|-
| [[graphql relationships]]
| [[graphql relationships]]
|-
| [[graphql subscriptions]]
|-
|-
|}
|}
Line 61: Line 59:
{|
{|
|-
|-
| [[ruby graphql]]
| [[ruby graphql-ruby]]
|-
|-
| [[python ariadne]]
| [[python ariadne]]

Latest revision as of 22:09, 5 September 2021

GraphQL is an alternative to REST APIs that enables you to query exactly what you need using a single HTTP request, rather than several.

Documentation

official docs https://graphql.org/learn/
introspection docs https://graphql.org/learn/introspection/
graphql spec http://spec.graphql.org/

Tutorials

digitalocean SDL intro https://www.digitalocean.com/community/tutorials/graphql-graphql-sdl

Notes

graphql basics
graphql usage
graphql queries
graphql mutations
graphql errors

Syntax

graphql datatypes
graphql relationships
graphql subscriptions

libraries

Libraries are mostly used to build APIs. Queries can be performed with regular HTTP requests.

ruby graphql-ruby
python ariadne
python graphene