datacore
datacore copied to clipboard
[Question] How to query for values inside a note property which is a list of links
So I have some notes with frontmatter like
---
title: 2025-06-03
created: 2025-06-03T10:45
updated: 2025-06-03T16:34
tasks:
- "[[2025-06-03#Task 01]]"
---
[CONTENT]
I would like to query the notes in that specific folder, where the tasks property contains some specific values
let mainQuery = '@page and $path.contains("Daily") and length(tasks) > 0';
// and (contains(tasks, "[[2025-06-03#Task 01]]"))
I tried that with contains, but it is not returning any value, so IDK if this is not supported or if I am doing something wrong.
Any help would be appreciated, thanks! :)
Have you tried post fix style for contains on the field? I noticed two different strategies in the query you posted.
let mainQuery = '@page and $path.contains("Daily") and tasks.length() > 0 and tasks.contains("[[2025-06-03#Task 01]]")'