I've setup a locale environment within docker, created a database and a web app with corresponding hostname. I'm able to use the .listDocuments API. But when I try to use GraphQL, I get a CORS error.
Also when I want to access the GraphQL Explorer through Altair, I'm not able to load the schema/docs. _APP_OPTIONS_ABUSE is set as disabled as advised by https://gist.github.com/stnguyen90/8b6b80682d80cfec130a61e60e07d1f9#file-start-appwrite-graphql-explorer-sh-L3.
What should I do extra to avoid the CORS errors for GraphQL from within my web app? And how to access through the GraphQL Explorer/Altair?
Where are you making the API calls from?
A web app? Did you add the web app as a web platform?
Both from a web app and from the GraphQL playground (Altair). The web app is added as web platform.
I though, I would be able to create my own GraphQL queries/mutation. But apparently only those provided within the docs are available., right?
Something like query {
todos(
databaseId: "655502fec6ccfd1dbd82"
) {
_id
description
}
} won't be possible, I guess?
Did you have added a platform in the console with the corresponding domain?
Yes, the platform is added with the corresponding domain. It's working fine. I wrongly thought, I could create my own GraphQL queries/mutations as I mentioned above. Apparently, it's not possible. Only those from the docs are supported, which makes GraphQL a less interesting option unfortunately. Anyway, the service as a whole is awesome.
Recommended threads
- Unauthorized Charge on My Card – I Don’t...
Hi, I need urgent help. I received a bank SMS about a charge from "APPWRITE PRO" (18.460 JOD on 10/12/2025 at 03:47), but I DO NOT have an Appwrite account and...
- Passkeys with Appwrite
I am using appwrite auth and would like to implement passkeys, did anyone have done before, have a guide or documentation or POC? if yes, please share because I...
- MFA Recovery Codes issue
after creating recovery codes using `account.createMFARecoveryCodes()` do we need to Verify MFA factors type recovery code? I followed this guide: https://appw...