danstevenson_reytOriginal post
Rank 1: Thread
I am using GraphQL queries in lots of places in my app. An example:
const usersProfile: IQueryDatabasesDocumentsResponse = await graphql.query({
query: `
query GetAccountByDisplayName($queries: [String!]!) {
databasesListDocuments(
databaseId: "${DATABASE_ID}"
collectionId: "${getCollectionId(CollectionNames.USER_PROFILE)}"
queries: $queries
) {
total
documents {
_id
data
}
}
}`,
variables: {
queries: [Query.equal("user_id", userId)]
}
});
These have worked fine on Cloud 1.4, but now I am getting syntax errors everywhere. "AppwriteException: Invalid query: Syntax error"
Please urgently suggest a solution to resolve these errors.
Summary
Developers are experiencing GraphQL syntax errors after updating to Cloud 1.5. The issue seems to stem from the update to "appwrite": "^14.0.1". The suggested solution is to carefully check the syntax and ensure it aligns with the specifications of the new version, as there have been changes that may be causing the errors.