mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Resolve lower-level attribute inline
This commit is contained in:
parent
0c497f2600
commit
c00f20f212
1 changed files with 1 additions and 3 deletions
|
|
@ -343,9 +343,7 @@ class Builder
|
|||
$escapedKey = str_replace('$', '_', $key);
|
||||
$collections[$collectionId][$escapedKey] = [
|
||||
'type' => self::getAttributeArgType($type, $array, $required),
|
||||
'resolve' => fn($object, $args, $context, $info) => $object->then(function ($obj) use ($key) {
|
||||
return $obj['result'][$key];
|
||||
}),
|
||||
'resolve' => fn($object, $args, $context, $info) => $object[$key],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue