Obsidian Dataview Examples

Related to:: Obsidian

Examples

Show all files created the same day of a note

This is very useful for daily notes.

```dataview
LIST 
WHERE file.cday = this.file.day
```
```dataview
LIST length(rows) 
GROUP BY "total"
```

List mocs and submocs

```dataview
LIST
filter(file.inlinks, (link) => link.file.frontmatter.type = "moc")
WHERE type = "moc" and length(filter(file.outlinks, (link) => link.file.frontmatter.type = "moc")) = 0
```

References