Better accessPath ergonomics
divyagnan opened this issue · 0 comments
divyagnan commented
Right now way of writing the access path is a little weird (you need to write it 'relative' to the array you pass in). Maybe it would be easier you could pass in the full access path.
i.e.
now assuming you have this array:
let array = [{ name: "divy" }]
you have to do this:
let accessPath = "[0].name"
but it might be better to allow both that and this:
let accessPath = "array[0].name"