How to reduce the local graph links given through property value links

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

In all my notes I have properties like this:

---
categories:
  - "[[itsecurity]]"
aliases: []
---

It is super to get a list of all notes with this property

because “itsecurity” is a category note like this:

# itsecurity
## Security Articles
![[category.base]]

ans category.base is something like this:

filters:
  and:
    - '!file.folder.contains("Templates")'
views:
  - type: table
    name: Table
    filters:
      and:
        - categories.contains(link(this.file.name))
    order:
      - file.name
      - categories
      - tags
    columnSize:
      note.tags: 737
  - type: table
    name: With type
    filters:
      and:
        - categories.contains(link(this.file.name))
    order:
      - file.name
      - type
      - categories
      - tags
      - context
    columnSize:
      note.type: 106
      note.tags: 612
  - type: table
    name: Context-Filter
    filters:
      and:
        - context == link(this.file.name)
        - '!file.inFolder("Templates")'
    order:
      - file.name
      - context
      - categories
      - tags
  - type: table
    name: individual
    filters:
      and:
        - file.tags.contains("obsidian")
    order:
      - file.name
      - tags
      - categories

So far, so practical.

My problem

Opening the local graph yields to an explotion of links as alread shown here:

Things I have tried

  • I can reduce the filter in local graph to depth level 1. But sometimes it is not enough. I also need level 2 in many cases.

  • One way would be to replace all the links in properties back to there simpel name without a link. That is not very practical

  • I looked for a plugin that would be able to toogle between Link and Not-Link. But I couldn’t find any

  • I looked for some Javascript solution - I couldn’ find

Question

Is there a way to use links in Properties in future but don’t have such a mass of links in the local graph?

I don’t believe there’s a way to do this automatically, you can filter notes out of the local graph but you’d have to do so manually.

The graph shows links between notes, including those in properties. It sort of sounds like you should update your categories lists to being a simple name, and update your base query accordingly. Sort of tedious to do manually, but you could likely make a script or use mass search/replace in an external editor like VS Code.

What I am looking for is a toogle for “link/no link” - either in the graph filter or in the property.

The graph only shows links between notes, so I’m not sure what you mean by toggling link/no link