Skip Navigation code drift

GraphQL

GraphQL Responses Treat [] as Having Errors

(1 min read) From the GraphQL Specification The errors entry in the response is a non‐empty list of errors, where each error is a map. If no errors were encountered during the requested operation, the errors entry should not be present in the result. That means a response of { "data"

GitHub's Hidden Discussion IDs

(1 min read) So that I don't forget this in the future, the Discussion API for GitHub behaves a differently than a lot of the other endpoints. As I implemented GitHub as a CMS, I needed to filter by discussion category, there's an example in the docs List the

GitHub as a CMS

(4 min read) GitHub's rich GraphQL API gives you a built-in headless CMS