List of Starred Notes Using Inline JS

Things I have tried

What I’m trying to do

Hi, I am trying to list my starred notes from my vault using dataview inline js. Unfortunately, I am not able to do it as my js knowledge is limited. Hope to get some help.

Using DataView as an example of what I am trying to achieve. Code below:

	file.starred as "Star"
where file.starred=true

I am trying to use inline js to display the same result. I tried the code below but result is not correct as it listed all notes. I am not able to filter just the starred=true notes only.


Have you tried normal Dataview search:

Where file.starred


Try doing this:

`$= dv.list(dv.pages(’’).where(s => s.file.starred==true).file.starred)`
1 Like

I think you want to end with ‘’ and not ‘file.starred’



1 Like

Thanks. It works :grinning:

1 Like