diff --git a/src/Appwrite/GraphQL/Resolvers.php b/src/Appwrite/GraphQL/Resolvers.php index e909e939f0..04f903290b 100644 --- a/src/Appwrite/GraphQL/Resolvers.php +++ b/src/Appwrite/GraphQL/Resolvers.php @@ -32,7 +32,9 @@ class Resolvers $path = $route->getPath(); foreach ($args as $key => $value) { - $path = \str_replace(':' . $key, $value, $path); + if (\str_contains($path, $key)) { + $path = \str_replace(':' . $key, $value, $path); + } } $swoole->server['request_method'] = $route->getMethod();