Ensure multi-yield path expression alias outputs are flattened
Closes #27
This commit is contained in:
parent
405a1e7b8d
commit
20a6ed88d3
1 changed files with 4 additions and 2 deletions
|
@ -107,7 +107,8 @@ impl Fields {
|
||||||
.get(ctx, opt, txn, v)
|
.get(ctx, opt, txn, v)
|
||||||
.await?
|
.await?
|
||||||
.compute(ctx, opt, txn, Some(doc))
|
.compute(ctx, opt, txn, Some(doc))
|
||||||
.await?;
|
.await?
|
||||||
|
.flatten();
|
||||||
// Add the result to the temporary store
|
// Add the result to the temporary store
|
||||||
res.push((v, x));
|
res.push((v, x));
|
||||||
}
|
}
|
||||||
|
@ -154,7 +155,8 @@ impl Fields {
|
||||||
.get(ctx, opt, txn, v)
|
.get(ctx, opt, txn, v)
|
||||||
.await?
|
.await?
|
||||||
.compute(ctx, opt, txn, Some(doc))
|
.compute(ctx, opt, txn, Some(doc))
|
||||||
.await?;
|
.await?
|
||||||
|
.flatten();
|
||||||
// Add the result to the temporary store
|
// Add the result to the temporary store
|
||||||
res.push((v, x));
|
res.push((v, x));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue