mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Resolve fields as top-level promises for fixed passed through types
This commit is contained in:
parent
e79343bae7
commit
1057d7e3aa
1 changed files with 3 additions and 3 deletions
|
|
@ -100,9 +100,9 @@ class Builder
|
|||
$fields[$escapedKey] = [
|
||||
'type' => $type,
|
||||
'description' => $props['description'],
|
||||
'resolve' => fn ($object, $args, $context, $info) => $object->then(function ($obj) use ($key) {
|
||||
return $obj[$key];
|
||||
}),
|
||||
'resolve' => fn ($object, $args, $context, $info) => new CoroutinePromise(
|
||||
fn($resolve, $reject) => $resolve($object[$key])
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue