Getting CORS error when making GraphQL queries using Appwrite's SDK in Next.js (client-side). Login/signup works fine. Only GraphQL is failing on both localhost and Vercel.
✅ Tried:
Added localhost + Vercel URLs in Appwrite project settings
Used setDevKey() in client config
API key + permissions are set correctly
Regular Appwrite SDK calls work – only GraphQL fails
code snippet:
```const query =
query {
databasesListDocuments(
databaseId: "${process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID}",
collectionId: "6894bf11000015b5ba60"
) { title }
}
;
const res = await graphql.query({ query });
❓Question:
Is Appwrite GraphQL not supported on client-side yet? Or is any extra CORS config needed?
Recommended threads
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...