Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/routes/changelog/(entries)/2026-02-02.markdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: changelog
title: "GraphQL schema is now public"
date: 2026-02-02
---

You can now run introspection queries on Appwrite's GraphQL API. With introspection enabled, you get:

- **IDE autocomplete** for queries, mutations, and fields
- **Schema exploration** using tools like GraphQL Playground, Insomnia, or Postman
- **Type generation** for strongly-typed clients in your preferred language

Here's how to fetch the schema using the Appwrite SDK:

```client-web
import { Client, Graphql } from "appwrite";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const graphql = new Graphql(client);

const schema = await graphql.query({
query: `{
__schema {
types { name }
queryType { fields { name } }
mutationType { fields { name } }
}
}`
});

console.log(schema.data);
```

{% arrow_link href="/docs/apis/graphql" %}
Learn more about Appwrite's GraphQL API
{% /arrow_link %}