1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Unpack query if request is coming from an SDK

This commit is contained in:
Jake Barnby 2022-07-22 11:38:28 +12:00
parent f8649a1a8d
commit 427b25dfb7

View file

@ -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);