Extensions
graphql
Any GraphQL API from the back end: a query and its variables, data or the
errors as failures with a kind, an answer in part, a connection page by page
by its cursor. github and linear are made on it.
The whole of it is docs/graphql.md.
use "pkg:graphql/graphql.mote"let d = graphql(url, "query($id: ID!) { node(id: $id) { id } }", {id}, {bearer: token})?let all = graphqlAll(url, query, {}, "repository.issues", 500, {bearer: token})?| File | |
|---|---|
graphql.mote | graphql, graphqlAnswer, graphqlPage, graphqlAll, graphqlAt, the shapes. |
tests.mote | Its tests (tests/svc_code/unit.mote). |
Covered: queries and mutations over POST with JSON, a bearer or any
header, errors read (code from extensions.code or type, path), kinds
(graphql, auth, limited, server, invalid, offline), a query asked again on
429 and a mutation never, nodes or edges connections by $after.
Left out on purpose: subscriptions, persisted and batched queries, uploads, introspection and typed schemas.
Edit this page:
extensions/graphql/README.md