Ensure multi-yield path expression alias outputs are flattened

Closes #27
This commit is contained in:
Tobie Morgan Hitchcock 2022-08-10 16:13:57 +01:00
parent 405a1e7b8d
commit 20a6ed88d3

View file

@ -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));
}