Ensure futures are processed when selecting data

This commit is contained in:
Tobie Morgan Hitchcock 2022-01-31 23:58:08 +00:00
parent 744b480f88
commit 40049aefb0

View file

@ -77,7 +77,7 @@ impl Idiom {
) -> Result<Value, Error> { ) -> Result<Value, Error> {
match doc { match doc {
// There is a current document // There is a current document
Some(v) => v.get(ctx, opt, exe, self).await, Some(v) => v.get(ctx, opt, exe, self).await?.compute(ctx, opt, exe, doc).await,
// There isn't any document // There isn't any document
None => Ok(Value::None), None => Ok(Value::None),
} }