This commit is contained in:
parent
f04f575283
commit
eeb46468aa
1 changed files with 8 additions and 1 deletions
|
@ -34,7 +34,14 @@ impl Value {
|
|||
// No further embedded fields, so just return this
|
||||
0 => Ok(Value::Future(v.clone())),
|
||||
// Process the future and fetch the embedded field
|
||||
_ => v.compute(ctx, opt, txn, None).await?.get(ctx, opt, txn, path).await,
|
||||
_ => {
|
||||
// Ensure the future is processed
|
||||
let fut = &opt.futures(true);
|
||||
// Get the future return value
|
||||
let val = v.compute(ctx, fut, txn, None).await?;
|
||||
// Fetch the embedded field
|
||||
val.get(ctx, opt, txn, path).await
|
||||
}
|
||||
}
|
||||
}
|
||||
// Current path part is an object
|
||||
|
|
Loading…
Reference in a new issue