Skip to content

Search notes with a null or empty attribute value #8475

@pangzhen

Description

@pangzhen

Description

Note defines an attribute with the label #label:finish=promoted,single,date. When using the API searchForNotes(query: string, searchParams: SearchParams): BNote[] to search for finish=null or finish='', how should the query parameter be written?

If I write #finish=null or #finish='', it fails to return notes.

TriliumNext Version

0.101.3

What operating system are you using?

macOS

What is your setup?

Local + server sync

Operating System Version

macOS Sonoma 14.7.4

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions