Ensure we can retrieve subsequent object fields
This commit is contained in:
parent
87840e3e05
commit
e92134c92d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue