Replies: 1 comment
-
The reason for this discrepancy is due to some technicalities on how That being said, we can work around this by doing a post-processing step to convert arrays to data arrays. This also opens up some cool functionality like proxying Links to be able to directly index into them. I'm going to convert this to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
An example:
if I have Note A as
then in a separate note, if I have an outlink to
Note A
, and then dodv.page
ordv.current()
, then the.file.outlinks
accessor returns an Array, not a DataArray.The above call will return a
-
.Whereas if I did
dv.pages
with explicit file name, I get a DataArray instead.This then produces
wong kar-wai
as expected. Same phenomenon can be observed via.tags
too, and I assume this is because whendv.page
ordv.current
is used, the result is a Page and not a DataArray of Pages, and thus all array-like fields are just returned as arrays.Considering how DataArrays is already blurring the line between singletons and arrays by allowing direct dot access to member fields, is it a potential possibility to make
dv.page
anddv.current
return DataArray instances too?Beta Was this translation helpful? Give feedback.
All reactions