# Frontmatter links show nested and can't query them

**URL:** <https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123>\
**Category:** Help\
**Tags:** dataview\
**Created:** [March 16, 2022, 10:17pm UTC](https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123 "2022-03-16T22:17:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabe31415](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/50afbb/32.png) [@gabe31415](https://forum.obsidian.md/u/gabe31415)\
**Post date:** [March 16, 2022, 10:17pm UTC](https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123/1 "2022-03-16T22:17:59Z")

</div>

![image](https://forum.obsidian.md/uploads/default/original/3X/d/c/dcd84e0c95e8388f1b201164f741c4fb6ac8beb2.jpeg)

I noticed that removing a set of brackets removes a layer of depth to the entry, so I get the causation, but is there a way to leave a “[[link]]” in my frontmatter and not have it nest extra layers in my resulting table?

- frontmatter = RED box
- dataview query = PURPLE box
- table view = GREEN box

### Things I have tried

Not sure what to try. I can’t find anything in the documentation, but perhaps as I learn the right verbiage to look up, I will get better at parsing and finding the answers.

### What I’m trying to do

Use “links” in my front matter because it reduces typos when putting data in that already exists as another document. (typos = bad)

---

<div class="post-metadata">

**Author:** ![mnvwvnm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnvwvnm/32/9766_2.png) [@mnvwvnm](https://forum.obsidian.md/u/mnvwvnm)\
**Post date:** [March 16, 2022, 10:42pm UTC](https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123/2 "2022-03-16T22:42:57Z")

</div>

Hi.  
The solution/rule is simple: in yaml frontmatter links need quotation marks. So, you need to write in this way:

```auto
---
childrenTest:
  - Child A
  - Child B
  - Child C
  - "[[Child D]]"
---

```

---

<div class="post-metadata">

**Author:** ![gabe31415](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/50afbb/32.png) [@gabe31415](https://forum.obsidian.md/u/gabe31415)\
**Post date:** [March 16, 2022, 10:47pm UTC](https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123/3 "2022-03-16T22:47:22Z")

</div>

That is PERFECT and yes “obvious” now that you say it… thank you!

I have more questions, but I’ll work on each one first and ask one at a time so answers/questions don’t get muddled.

Heck, maybe the answer to this one will help me figure out the next 😃

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [March 23, 2022, 10:48pm UTC](https://forum.obsidian.md/t/frontmatter-links-show-nested-and-cant-query-them/34123/4 "2022-03-23T22:48:04Z")

</div>

Closed on March 23, 2022, 10:48pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
