Unpack query if request is coming from an SDK
This commit is contained in:
parent
f8649a1a8d
commit
427b25dfb7
|
@ -97,6 +97,12 @@ function executeRequest(
|
|||
Type\Schema $schema
|
||||
): void {
|
||||
$query = $request->getParams();
|
||||
|
||||
// SDK support
|
||||
if ($request->getHeader('x-appwrite-graphql-packed') == 'true') {
|
||||
$query = $query['query'];
|
||||
}
|
||||
|
||||
$contentType = $request->getHeader('content-type');
|
||||
|
||||
$maxBatchSize = App::getEnv('_APP_GRAPHQL_MAX_BATCH_SIZE', 10);
|
||||
|
|
Loading…
Reference in a new issue