Simon Willison: TILs on graphql

Atom feed for graphql

graphql GraphQL fragments - 2022-09-30

One of the scripts that builds and deploys datasette.io uses a GraphQL query to retrieve information from GitHub about the repositories used for the various Datasette tools and plugins. …

graphql Using curl to run GraphQL queries from the command line - 2022-02-21

I wanted to run a query against the GitHub GraphQL API using curl on the command line, while keeping the query itself as readable as possible. Here's the recipe I came up with (tested in both bash and zsh), with TOKEN replaced by my GitHub API personal access token: …

graphql get-graphql-schema - 2022-02-01

The GraphQL schema language is a concise way to represent the available schema provided by a GraphQL endpoint. It looks something like this: …