From 19123257fce8b8b662e91699b4d6c07e4de7c04b Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 20 Oct 2022 15:29:56 +1300 Subject: [PATCH] Strip $ instead of replace to match SDK models --- src/Appwrite/GraphQL/Resolvers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/GraphQL/Resolvers.php b/src/Appwrite/GraphQL/Resolvers.php index a1f636348c..b75f7a8377 100644 --- a/src/Appwrite/GraphQL/Resolvers.php +++ b/src/Appwrite/GraphQL/Resolvers.php @@ -290,7 +290,7 @@ class Resolvers foreach ($payload as $key => $value) { if (\str_starts_with($key, '$')) { - $escapedKey = \str_replace('$', '_', $key); + $escapedKey = \str_replace('$', '', $key); $payload[$escapedKey] = $value; unset($payload[$key]); }