Ensure we can retrieve subsequent object fields

This commit is contained in:
Tobie Morgan Hitchcock 2022-03-25 18:45:14 +00:00
parent 87840e3e05
commit e92134c92d
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ impl Value {
Some(v) => v.get(ctx, opt, txn, path.next()).await, Some(v) => v.get(ctx, opt, txn, path.next()).await,
None => Ok(Value::None), None => Ok(Value::None),
}, },
Part::All => Ok(self.clone()), Part::All => self.get(ctx, opt, txn, path.next()).await,
_ => Ok(Value::None), _ => Ok(Value::None),
}, },
// Current path part is an array // Current path part is an array

View file

@ -13,7 +13,7 @@ impl Value {
Some(v) => v.pick(path.next()), Some(v) => v.pick(path.next()),
None => Value::None, None => Value::None,
}, },
Part::All => self.clone(), Part::All => self.pick(path.next()),
_ => Value::None, _ => Value::None,
}, },
// Current path part is an array // Current path part is an array