dartungar / obsidian-simple-note-review

Simple, customizable plugin for easy note review, resurfacing & repetition in Obsidian.md.
MIT License
56 stars 2 forks source link

What does the query part map to? FROM or WHERE? #42

Closed finn-matti closed 9 months ago

finn-matti commented 1 year ago

As far as I can tell it maps onto FROM, which means it limits a lot of functionality to filter notes down. Is my assumption correct?

dartungar commented 9 months ago

@finn-matti you can check nitty-gritty details in the source code; TLDR: it creates DataviewJS query, so I'm not sure if your question can be answered 🤔

finn-matti commented 8 months ago

It can be answered. You use the pages function to query for notes to review. This query is a source query, which is documented here and here:

A dataview source is something that identifies a set of files, tasks, or other data. Sources are indexed internally by Dataview, so they are fast to query. The most prominent use of sources is the FROM data command. They are also used in various JavaScript API query calls.

This quote (from the last source; emphasis mine) makes it clear that it maps to FROM, which is interesting to know to see the result set that will become the note set in this plug-in.

dartungar commented 8 months ago

Glad you figured it out.