From 4521302cb87edb7419a1585b2b0a389bb8e8dc66 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 19 Jun 2025 18:36:32 +0530 Subject: [PATCH] fix: graphql test for complex queries. --- tests/e2e/Services/GraphQL/Base.php | 2 +- tests/e2e/Services/GraphQL/Tables/AbuseTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index bd3c792248..554f84e616 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -3070,7 +3070,7 @@ trait Base _id name } - databasesCreateTable(databaseId: $databaseId, tableId: $tableId, name: $tableName, rowSecurity: $rowSecurity, permissions: $tablePermissions) { + tablesCreate(databaseId: $databaseId, tableId: $tableId, name: $tableName, rowSecurity: $rowSecurity, permissions: $tablePermissions) { _id _createdAt _updatedAt diff --git a/tests/e2e/Services/GraphQL/Tables/AbuseTest.php b/tests/e2e/Services/GraphQL/Tables/AbuseTest.php index 8b759aa1ce..88c216dd5a 100644 --- a/tests/e2e/Services/GraphQL/Tables/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/Tables/AbuseTest.php @@ -132,7 +132,7 @@ class AbuseTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ], $gqlPayload); - $databaseId = $response['body']['data']['tablesCreate']['_id']; + $databaseId = $response['body']['data']['databasesCreate']['_id']; $query = $this->getQuery(self::$CREATE_TABLE); $gqlPayload = [