diff --git a/lib/src/sql/field.rs b/lib/src/sql/field.rs index a0cee1c5..7521e58b 100644 --- a/lib/src/sql/field.rs +++ b/lib/src/sql/field.rs @@ -107,7 +107,8 @@ impl Fields { .get(ctx, opt, txn, v) .await? .compute(ctx, opt, txn, Some(doc)) - .await?; + .await? + .flatten(); // Add the result to the temporary store res.push((v, x)); } @@ -154,7 +155,8 @@ impl Fields { .get(ctx, opt, txn, v) .await? .compute(ctx, opt, txn, Some(doc)) - .await?; + .await? + .flatten(); // Add the result to the temporary store res.push((v, x)); }