From b112c0b3c64824ba7f63e5feb442de60281a2d12 Mon Sep 17 00:00:00 2001 From: Atharva Deosthale Date: Mon, 2 Feb 2026 16:49:59 +0530 Subject: [PATCH 1/2] graphql schema changelog --- .../changelog/(entries)/2026-02-02.markdoc | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/routes/changelog/(entries)/2026-02-02.markdoc diff --git a/src/routes/changelog/(entries)/2026-02-02.markdoc b/src/routes/changelog/(entries)/2026-02-02.markdoc new file mode 100644 index 0000000000..2e25bcf5cf --- /dev/null +++ b/src/routes/changelog/(entries)/2026-02-02.markdoc @@ -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 + +To try it out, send an introspection query to your project's GraphQL endpoint: + +```client-web +import { Client, Graphql } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') + .setProject(''); + +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 %} \ No newline at end of file From 8211b24c3423f6fb629f5097a7f6873b97a61e83 Mon Sep 17 00:00:00 2001 From: Atharva Deosthale Date: Mon, 2 Feb 2026 16:55:47 +0530 Subject: [PATCH 2/2] little change --- src/routes/changelog/(entries)/2026-02-02.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/changelog/(entries)/2026-02-02.markdoc b/src/routes/changelog/(entries)/2026-02-02.markdoc index 2e25bcf5cf..7a57cf1c87 100644 --- a/src/routes/changelog/(entries)/2026-02-02.markdoc +++ b/src/routes/changelog/(entries)/2026-02-02.markdoc @@ -10,7 +10,7 @@ You can now run introspection queries on Appwrite's GraphQL API. With introspect - **Schema exploration** using tools like GraphQL Playground, Insomnia, or Postman - **Type generation** for strongly-typed clients in your preferred language -To try it out, send an introspection query to your project's GraphQL endpoint: +Here's how to fetch the schema using the Appwrite SDK: ```client-web import { Client, Graphql } from "appwrite";